Based on what I've read, I've learned that the least ideal approach is to place the context information in server.xml.
What I don't know, though, is how the remaining options stack up to each other. What are the tradeoffs (apart from the path naming issue) of placing context.xml in META-INF versus as conf/Catalina/[host]/[appname].xml? For what reasons is one approach better than the other? I don't have as much experience deploying to Tomcat as some of you might, so I'm hoping you could outline the advantages and disadvantages of either approach. Caldarale, Charles R wrote: > >> From: lightbulb432 [mailto:[EMAIL PROTECTED] >> Subject: Specify context path when context.xml is in META-INF >> >> Is there a way, when you have your context.xml in META-INF rather than >> specifying the Context element in server.xml or elsewhere, to >> customize the context path? > > No - the path is taken from the name of the .war file or directory. The > only way to accomplish what you want is to place the <Context> element > in the conf/Catalina/[host]/[appname].xml location, in which case the > [appname] is the path. The application should not be placed in the > <Host> appBase in this case, or you risk double deployment. > >> If not, is there a strong reason why context.xml in META-INF >> couldn't read and use the path attribute of Context? > > Primarily to avoid ambiguities and extra, unwanted deployments. > > - 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] > > > -- View this message in context: http://www.nabble.com/Specify-context-path-when-context.xml-is-in-META-INF-tp14246199p14246383.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]