File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

deployment error in tomcat 5.5

Ray Lowell

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(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployWAR(
at org.apache.catalina.startup.HostConfig.deployWARs(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
What did I miss?
Swetha Popuri

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:
subject: deployment error in tomcat 5.5
It's not a secret anymore!