> 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]

Reply via email to