---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
---------------------------------------------------------------------------
Chuck is right... the application has to be there already.
Another slight variation on what Chuck is saying is this...
http://localhost:8080/manager/deploy?config=file://D:\\GARBAGE\\TestSite\\META-INF\\context.xml&path=/demo/test
The above URL will deploy it...BUT
Unpack the war file at a "TestSite" location outside of Tomcat/WebApps
Make the context.xml file in that unpacked file look like this.
<Context docBase="D:\GARBAGE\TestSite" path="/Ignored"/>
It will become /demo/test
NOT /Ignored
I think you could deliver the WAR to "TestSite"
And just a reference context.xml file and do it as well... it will ignore
the internal context, I think.
Its weird because it picks up docBase from the context, but looks at the
path (context) in the URL.
I tried it, normal deployment does not work with a sub context... as soon as
you do that it looks for a docBase.
Two ways... but not as slick as the normal deployer... not too Auto ;)
----- Original Message -----
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, November 19, 2007 9:41 PM
Subject: RE: How to Deploy WAR using a sub-context path?
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B.
Subject: How to Deploy WAR using a sub-context path?
However, I now have a need to deploy my WAR under a context
path that is not at the root level of my tomcat server.
For example, I need to deploy my application.war under:
http://www.domain.com/demo/application
You need to put your <Context> element in
conf/Catalina/[hostname]/demo#application.xml; include a docBase
attribute to point to the location of the appropriate war file (or
directory). Do not put the application under the <Host> appBase
directory, or it will be deployed twice.
I don't know if you can do this with the autodeployer, but a simple
script should suffice.
- 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]