I don't know if this is how it *should* be done, but I have gotten it to
work by putting the context definitions in server.xml, and specifying
both their context base and doc base. I never got it to work using any
other technique, and I tried a bunch of iterations.
Dave
Johnny Kewl wrote:
Charles...
How does the user deploy it to get it like that, thanks, we now know
what cant be done, but given one WAR, how would you deploy it to 3
contexts, as 3 web apps?
I believe the user can share it in a ROOT... if the reason for the
context is merely url mapping.
I believe the user can deploy it via ant script which uses the built
in admin tasks, ie it bypasses auto war deployment.
How do you think it should be done?
----- Original Message ----- From: "Caldarale, Charles R"
<[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Friday, June 22, 2007 3:13 AM
Subject: RE: Multiple Contexts from single WAR
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Subject: Re: Multiple Contexts from single WAR
OK... you cant do it from a WAR, the tomcat WAR deployment
seems to ignore contexts and always default to the name of
the WAR file.
Not true. When the .war is located someplace other than the <Host>
appBase, the name of the .xml file in conf/Catalina/[host] supplies the
webapp name, and the docBase attribute specifies the location -
completely independent of the app name.
- 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]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]