I looked at the TC 5.0 pages for this, and it does not appear to be the same for 5.0 (which I use now)
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html says " The context path of this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing. All of the context paths within a particular Host must be unique. If you specify a context path of an empty string (""), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts." While http://tomcat.apache.org/tomcat-5.5-doc/config/context.html says " The context path of this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing. All of the context paths within a particular Host must be unique. If you specify a context path of an empty string (""), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts. The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase." The addition in 5.5 being " The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase."" Can you not specify a path, docbase, and workdir in the context.xml file for TC 5.0? I routinely change the name of my war file to install a new instance used for testing or ad-hoc demos. If I could leave those attributes out in the context file, it would be a great help. Mike -----Original Message----- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 3:11 PM To: Tomcat Users List Subject: RE: Webapp runs on Tomcat 5.5.9 but not 5.5.20 > From: John Langan [mailto:[EMAIL PROTECTED] > Subject: RE: Webapp runs on Tomcat 5.5.9 but not 5.5.20 > > I have META-INF/context.xml in my app, which contains the following. > <Context path="AppName" debug="1" reloadable="true"> > <!-- Default set of monitored resources --> > <WatchedResource>WEB-INF/web.xml</WatchedResource> > <WatchedResource>META-INF/context.xml</WatchedResource> > <!--Database info --> > </Context> The path attribute should be removed, since its value is derived from the name of the .war file or directory in which the app is deployed. To quote from the doc: "The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase." http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]