Tomcat Deploy Problem: ClassCastException .. FileDirContext

I upgraded to JDK 1.5 and Tomcat 5.5.7 and when deploying my exploded web directory from within Idea (i get the same problem with 4.5.3 and with Irida 3229), I get the following on stdout:

cmd /c "C:\dev\platform\Tomcat 5.5\bin\catalina.bat" run
Connected to the target VM at '127.0.0.1:3658' using socket transport.
Using CATALINA_BASE: C:\Documents and Settings\torstenek\.IntelliJIdea\system\tomcat_Tomcat5.5_1a84e90d
Using CATALINA_HOME: C:\dev\platform\Tomcat 5.5
Using CATALINA_TMPDIR: C:\dev\platform\Tomcat 5.5\temp
Using JAVA_HOME: C:\dev\platform\jdk1.5.0
Feb 21, 2005 8:19:35 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1321 ms
Feb 21, 2005 8:19:35 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 21, 2005 8:19:36 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 21, 2005 8:19:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Feb 21, 2005 8:19:36 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 21, 2005 8:19:36 PM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor myproject.xml
java.lang.ClassCastException: org.apache.naming.resources.FileDirContext
at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:185)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3942)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Please sign in to leave a comment.