> From: David Woosley [mailto:dwoos...@appnation.com] > Subject: Re: Context variation problems -- localhost versus VPS
> Tomcat 5.5 deployment seems somewhat confusing to me. It's the same in 5.5, 6.0, and 7.0, with more options available in 7. Basically, the rules to follow are: 1) Don't put <Context> elements in server.xml. 2) Do not specify a path attribute in a <Context> element. 3) Every <Host> must have a default (ROOT) webapp. 4) The name of the .war file or directory under a <Host>'s appBase directory determines the URL path of the webapp, except that ROOT (case-sensitive) becomes the default webapp. It is not required to have anything under the <Host> appBase directory; see alternative below. 5) For webapps deployed under a <Host>'s appBase directory, do not specify a docBase attribute in any <Context> element for them. 6) A <Context> element in conf/Catalina/<host_name>/<app_name>.xml will supersede the META-INF/context.xml file within the webapp. 7) For webapps not deployed under a <Host>'s appBase directory, create a conf/Catalina/<host_name>/<app_name>.xml file containing a <Context> element with a docBase attribute pointing to the absolute location of the webapp (directory or .war file). Most (all?) of the books on Tomcat contain some errors or recommend outdated practices; use the online Tomcat docs. > I will upgrade as soon as possible which, unfortunately, is easier > said than done. Read the migration guide: http://tomcat.apache.org/migration.html > Do you offer consulting services for things like this? Other than on this list, no; others on the list might. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org