wood burning stoves 2.0*
The moose likes Tomcat and the fly likes deployment error in tomcat 5.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "deployment error in tomcat 5.5" Watch "deployment error in tomcat 5.5" New topic
Author

deployment error in tomcat 5.5

Ray Lowell
Greenhorn

Joined: Jul 19, 2012
Posts: 5

Hi, my application runs fine in tomcat 6 (compiled using jdk1.6), but when I try to deploy it in tomcat 5.5 , the list of applcations does'nt show my application. and in catalina.out I see this error:-
------------------------------------------------------------------------------------------------------------------------
SEVERE: Error deploying web application archive headtracker.war
java.lang.ClassCastException: org.apache.naming.resources.FileDirContext cannot be cast to org.apache.naming.resources.Resource
at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:182)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
-------------------------------------------------------------------------------------------
What did I miss?
Swetha Popuri
Greenhorn

Joined: Jul 19, 2012
Posts: 7
This is a bug in Tomcat it seems, which is fixed in Tomcat 6. Occurs when there is a directory under WEB-INF/lib which includes .jar files in it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deployment error in tomcat 5.5