aspose file tools*
The moose likes Tomcat and the fly likes Tomcat not reading context.xml on deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not reading context.xml on deployment" Watch "Tomcat not reading context.xml on deployment" New topic
Author

Tomcat not reading context.xml on deployment

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Tomcat is not reading my context.xml file on deployment.

from logs:
SEVERE: Error deploying configuration descriptor app.xml
java.lang.NullPointerException
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:576)
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.check(HostConfig.java:1181)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
at java.lang.Thread.run(Unknown Source)

I have never had this problem before, anyone seen this one before?


http://www.goodercode.com
SCJP 1.4
Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Well I changed contextpath to same name as war file and it fixed it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not reading context.xml on deployment