> From: vicky [mailto:vicky007aggar...@yahoo.co.in] 
> Subject: Re: Context root query

> What sense does it make to statically defining a Context in server.xml ?? 

Pretty much none, these days.  Don't do it.

> we cannot override  the default  application context  using 
> "/META-INF/context.xml"  ??

The path attribute is not allowed, except when using the strongly discouraged 
mechanism of placing the <Context> element in server.xml.

> As i have a user requirement that they want to have a application context 
> as different from application archive file name 

Your user has a nonsensical requirement.  If you can't get that changed, your 
best alternative is to keep the .war file completely outside of Tomcat's 
directory structure, and place a <Context> element in the file 
conf/Catalina/[host]/[appName].xml, with a docBase attribute pointing the 
absolute location of the .war file.

> i can achieve this by adding the below snippet in server.xml

That is seriously not recommended.  Use the approach outlined above instead.

> <Context path="/tests" docBase="/var/www/test_application1/"
> debug="0" reloadable="true" crossContext="false">
> </Context>

On a side note, did you see any debug attribute in the documentation for the 
<Context> element?  Since you didn't, why are you using it?

 - 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

Reply via email to