Ok thanks Charles

----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Friday, June 22, 2007 4:02 PM
Subject: RE: Multiple Contexts from single WAR


From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Multiple Contexts from single WAR

<Context path="/TheOneIWant"/>

Compile it and drop that WAR into Tomcats webapp (auto deploy)

The context will be changed to TEST.... will it not?
Yes it does describe the thing in conf/Catalina/[host] but its not the one the user put in....

Please explain why this is not true?

The above is true, but has nothing to do with the procedure described
yesterday.

1) The .war file must NOT go into the <Host> appBase directory (usually
webapps).

2) There must NOT be a path attribute in the <Context> (it would be
ignored, anyway).

3) Create a <Context> element in some file (not META-INF/context.xml)
with a docBase attribute specifying the absolute file system path of the
.war file.

4) Replicate the above file as many times as needed as [appname].xml in
conf/Catalina/[host].

You're done.

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

Reply via email to