Thank you for your quick response. I quickly tried renaming the context.xml file to SVOIC.xml and it got rid of the fatal error and just gives me the docBase warning. I will try the additional 2 steps and see if that gets rid of the warning.
If I read your response correctly, I will first, create a META-INF directory in my application and place the context.xml file there. I will not name it SVOIC.xml since it will me moved to the META-INF directory. I will then remove the path attribute from it. Thanks again, and I will let you know how it goes. Greg -----Original Message----- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 10:14 AM To: Tomcat Users List Subject: RE: docBase error on Tomcat 5.5.12 > From: Rose, Greg [mailto:[EMAIL PROTECTED] > Subject: docBase error on Tomcat 5.5.12 > > I did this by creating a context.xml file with the > information and placed it in the > {tomcat base dir}\conf\Catalina\localhost directory. > The context entry is: > <Context path="/SVOIC" docBase="SVOIC" > debug="5" reloadable="true" crossContext="true"> Three things wrong: 1) The name of the file containing the <Context> tag must be <app_name>.xml, not context.xml (context.xml is used when it's under the META-INF directory). 2) The path attribute is not allowed, unless the <Context> tag appears in server.xml, which is strongly discouraged. The path to the app is determined by the name of the .xml file containing the <Context> tag. 3) By having an entry in conf/Catalina/localhost that points to an application under the webapps directory, you run the risk of deploying the application twice. If your app is under webapps, then it's better to place the <Context> tag in a context.xml file under the app's META-INF directory. Use the alternate location only if the app is not under webapps. (This also makes the app easier to deploy across multiple systems, since the information is now packaged in the .war file.) > I left the default context.xml file in the {tomcat base > dir}\conf directory unchanged. That file merely provides defaults for all webapps. > Every now and then, I get the following error when I start Tomcat: 5.5.12 enforces the naming rules more strictly, although still not perfectly. > And then the final error message: > Document base C:\Tomcat 5.5\webapps\context does not exist or > is not a readable directory This is because the <Context> tag is in a file named context.xml, so it's trying to deploy an app under the name "context". - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]