You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2007/01/11 15:50:20 UTC
RE: Is it possible to deploy a war file which gives a different contextname?
> From: Tim Funk [mailto:funkman@joedog.org]
> Subject: Re: Is it possible to deploy a war file which gives
> a different contextname?
>
> 1) Keep the war file out of the tomcat installation
> 2) Use a context declaration which points to the war file
> (mainApp.xml)
> 3) Don't unpack wars (<Host ... unpackWARs="false" ...>)
>
> mainApp.xml
> ===
> <Context docBase='/usr/local/wars/foo.war'/>
> ===
The only thing missing from the above is that the [appName].xml file
containing the <Context> element with the docBase attribute should be
placed in conf/[engine]/[host] (usually conf/Catalina/localhost). You
definitely don't want to put it in server.xml; doing so requires
restarting Tomcat when any changes are made to the app.
- 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org