> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Subject: Re: tomcat context
> 
> An alternative is to specify a <Context> element in your 
> server.xml file and specify the name of the context as well
> as the location of the WAR file.

Gotta get you out of the 4.1 mindset, Chris :-)

Do NOT put <Context> elements in server.xml; any changes to them require
a restart of Tomcat.  Rather, put the <Context> element in
conf/Catalina/[host]/[appname].xml, where appname is the desired name of
the application - it need not match the name of the .war file.  Use a
docBase attribute for <Context> that points to the .war file, which MUST
be placed outside of the <Host> appBase directory - otherwise you will
get the application deployed twice, once under the desired name, once
under the .war name.

 - 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