Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Is it possible to deploy a war file which gives a different contextname?

Caldarale, Charles R

2007-01-11

Replies:

> From: Tim Funk [mailto:funkman@(protected)]
> 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@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.