A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat will create it under your host as ROOT.xml when it is deployed. That doesn't solve the problem your experiencing, what does your ROOT.xml look like? What are you referencing your docBase? Ours word fine by referencing the ROOT.war.
Note, if you update the context.xml in your webapp, it doesn't auto update the cached ROOT.xml; you would need to undeploy the webapp, delete the ROOT.xml from conf/Catalina/localhost and redeploy the new webapp. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, October 09, 2004 3:33 AM To: [EMAIL PROTECTED] Subject: [Possible bug?] Context configurations and .WAR deployment Hello, I recently upgraded from Tomcat 5.0.19 to Tomcat 5.0.28. I am now running into a conflict between ROOT.xml and ROOT.war. This happens when I deploy to production: 1. I delete the ROOT.war and ROOT directory from /usr/local/tomcat/webapps 2. I delete the ROOT.xml context configuration file in /usr/local/tomcat/conf/Catalina/localhost 3. I then copy the new ROOT.war file to /usr/local/tomcat/webapps 4. I copy the new ROOT.xml file to /usr/local/tomcat/conf/Catalina/localhost This used to work fine in Tomcat 5.0.19. Now, in 5.0.28, when I startup the server, I get the following error: INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[] And the new ROOT.war file is never expanded (which is why ROOT.xml can't find web.xml). The only way to get the .war file to expand, is to temporarily remove the ROOT.xml file, startup the server (which then expands the .war file), and then copy the ROOT.xml file over. The reason I'm using the ROOT.xml file is to setup DBCP for this webapp only. In theory, it's not updated often, but when updates occur, it would be copied over during this process, which is why I do it in my deployment script. What happened since Tomcat 5.0.19 to make it not expand the ROOT.war archive at the same time that it's processing a new ROOT.xml file? Thank you, -Raiden Johnson --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
