Hi All, On 17 Oct 2005 at 11:23, Rob Hills wrote:
> I am currently using Tomcat 5.5.9 on Window XP Pro in my development > environment and I believe I have finally tracked down the > cause of a problem that has been plaguing me for some time. Until recently > I've not had the time to do the testing to establish what > the problem was. It appears to me that if you use a context.xml file inside > a WAR file and include in that file a <Context > ...></Context> element (ie an element with opening and closing tags, > attributes, but no contents) Tomcat will not deploy the context > properly. This issue gets curiouser and curiouser! As mentioned in my previous email, I eventually established that my WAR file-based web application (built using Ant) would deploy on Tomcat 5.5 on Windows if I used a context.xml file with a simple context element like this: <Context reloadable="true"/> For my sins, I am having to deploy the same application in Tomcat 5.5 on Windows and also Tomcat 5.0 on Linux (FC4/TC5.0.30-8jpp). I've established (I believe) that I can't use the same context.xml file for my WAR file for both systems. From the my reading of the Documentation, docBase and Path are mandatory attributes of the Context element for Tomcat 5.0. From my experience, if I include them in the Context element and deploy the WAR file on Tomcat 5.5 on Windows, I get my "Missing application web.xml" error. However, to date, after much fiddling with the context.xml, I've not been able to succeed in getting it to deploy on the linux box. The catalina.out log shows only the "missing application web.xml, using defaults only" error and accessing the apps url gives a file list showing the ROOT.war file. If I delete the Catalina/my-app/ROOT.xml, unzip my WAR file and bounce Tomcat, the web app starts up OK, without the "missing application web.xml" error. Has anyone else seen this? Is there any way to crank up the logging of Tomcat's processing of the WAR, web.xml and context.xml files so I can get a better idea what's upsetting it? Cheers, Rob Hills West Perth Western Australia --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]