본문 바로가기

Study/Java

java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be cast to org.apache.tomcat.InstanceManager

 이것저것을 하다가 이클립스에 메이븐을 이용해서 톰켓에 Deploy하던중 생긴 문제입니다. 


Source: http://fanshuyao.iteye.com/blog/1688314


중국어는 못하지만, 영어로 Thank you 라고 남겨놓고 싶었으나, 답글도 어떻게 다는지 모르겠네요 


답은 간단합니다. 


<Context>

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>

    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->

    <!-- Uncomment this to enable Comet connection tacking (provides events
         on session expiration as well as webapp lifecycle) -->
    <!--
    <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
    -->
    
    <Loader delegate="true" /> 
     

</Context>