Guys, as the original poster of this thread I'd like to thank all concerned
for the valuable contributions.

I've learned that a single WAR can be used by creating
conf/catalina/localhost/<context>.xml files with the docBase pointing to a
fully qualified path outside of the webapps location... and that I can apply
RemoteAccess valves at that level. So in one way I'm happy, but it has
revealed another issue which I need to get round...

How to have a servlet mapping the same as the context name? I want
http://localhost/<context> to invoke my servlet by default. I've tried with
"/" and
"/<context>" as the mapping but neither work. "/*" overrides JSP servlet
which I also need. It seems all servlet mappings are relative to the
context.

Maybe I'm missing something simple?


-----Original Message-----
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: 22 June 2007 18:22
To: Tomcat Users List
Subject: Re: Multiple Contexts from single WAR


Talking to David.... he's doing it yet another way.
Tomcat is certainly flexible ;)

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


> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> Subject: Re: Multiple Contexts from single WAR
>
> Even though that works, personally I would go for making
> 3 copies, rename them to whatever is wanted, then just
> drop them in.

The procedure I outlined requires only replication of the [appname].xml
file for each app - no multiple copies of the .war, no configuration, no
other fiddling around.  Why is that so hard or risky?

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

Reply via email to