-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

Chris Hall wrote:
> Hi, I'm experiencing some issues with getting correct behaviour on deploying
> multiple Contexts based on a single WAR. I need to do this because whilst my
> application is common to multiple contexts, I need to control RemoteAddress
> access to some of them via the relevant context Valve.

I don't buy it. What is stopping you from using one WAR file per webapp?

> I have defined multiple contexts in conf/catalina/localhost/*.xml each of
> which use a common docBase and this appears to create each of the webapps on
> start-up.

I don't see why this wouldn't work, but I also don't understand why it
would ever be desirable.

> However the servlet-mapping entries that are defined in the common
> web-inf/web.xml do not appear to be applied in accessing the copied context.

What do you mean, the "common" web.xml? Also, you're sure you have that
as "WEB-INF", not "web-inf", right?

> For example the url-pattern which redirects to a servlet does not take
> effect on the copied context definition, whereas it does apply on the webapp
> that is named after the originating WAR.

So you're basically saying that these "extra" contexts don't appear to
deploy at all? Or do they not deploy properly? If you can't use your
servlets, why do you think that anything is working at all?

> I guess I could deploy multiple WARs each named differently, but that seems
> to defeat what the common docBase is trying to achieve?

Since it doesn't appear to be working, you should try the multiple-WARs
approach and see if /that/ works. If multiple WAR files don't work, then
you have something else wrong in your configuration, and your
multiply-deployed-WAR strategy might still be viable.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGevgJ9CaO5/Lv0PARAnMvAKCEWbUSj9IPRvtux8zUZ6NVtzYZsQCgkop+
cn+smsqQ8UYMHZmajuQH9sQ=
=5g7s
-----END PGP SIGNATURE-----

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