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?

Markus Schönhaber

2007-01-11

Replies:

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?

I don't think this is possible - at least not with Tomcat >= 5. As
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
states, the only case where the Context's path may be set via a configuration
option is when statically defining a Context in server.xml - which is
discouraged and doesn't go along well with deploying a war file.

Regards
mks

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