tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott McClanahan <scott.mcclana...@trnswrks.com>
Subject RE: Using manager to deploy with path="/123/456/789"
Date Wed, 01 Aug 2007 17:03:19 GMT
On Wed, 2007-08-01 at 11:09 -0500, Caldarale, Charles R wrote:
> > From: Derek Alexander [mailto:d.alexander@lse.ac.uk] 
> > Subject: Using manager to deploy with path="/123/456/789"
> > 
> > I want to use the manager to deploy an app with the context 
> > path like /123/456/789
> 
> Can't say I know how to do it with the manager app, although it may be
> possible.
> 
> What you need to end up with is a file named 123#456#789.xml under
> conf/Catalina/[host] that contains a <Context> element with a docBase
> attribute pointing the the .war file.  Said .war file should be located
> outside of any <Host> element's appBase directory, or it will be
> deployed twice, once under the desired name and again under the name of
> the .war file.
> 
You can't do it with the manager app because it deploys to appBase and
applications deployed to the appBase ignore both path and docBase in the
context.xml.  Plus, having both the context descriptor in
conf/Catalina/<host> and the .war deployed in your appBase could cause
the application to be deployed twice.

I really wish you could deploy a .war with the manager app and have the
path be different than the application name without inadvertently
deploying the app twice.  The documentation seems pretty clear on this
but if there is still a working example of this being done please fill
me in.


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


Mime
View raw message