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 context
name?

Tim Funk

2007-01-11

Replies:

Yes (I think)
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'/>
===

-Tim

Aaron Chai wrote:
> Is it possible for Tomcat to deploy war files where the context name is
> not the same as the original war file name, e.g. deploying webapp.war
> and the context name is /mainApp instead of /webapp. How would this be
> achieved if it is possible?


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