RE: Multiple contexts mapped to single docbase

2004-08-02 Thread Shapira, Yoav

Hi,
You can have as many Contexts as you want mapped to the same docBase,
but the path has to be different.  Path usually starts with a / by the
way, except for the default (ROOT) webapp whose path is .


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Robert Hunt [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple contexts mapped to single docbase

This seems to work:

[server.xml excerpted]
---
!-- uses standard web.xml as deployment descriptor --
Context path=myWWW
  docBase=appXyz
  ...
  /

!-- uses webdav.xml as deployment descriptor --
Context path=myWebDav
  docBase=appXyz
  defaultWebXml=full pathspec\WEB-INF\webdav.xml
  ...
  /
---

where webdav.xml contains the standard webdav servlet definitions and
necessary security constraints.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple contexts mapped to single docbase

2004-08-02 Thread Robert Hunt
Re: multiple mappings; not exactly the point and I apologize for not
specifying that 'docBase=appXyz' (in both Context/ descriptors) should
be an absolute reference.

The point was to have multiple contexts mapped to the same docbase, BUT,
with each context having its OWN web.xml deployment descriptor.

Using the undocumented (you don't see it listed in most texts) defaultWebXml
feature achieves this purpose.  But, as it is undocumented, I'm
wondering if there's a better/more-robust (read: supported) method.

-- RH


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple contexts mapped to single docbase

2004-08-01 Thread Robert Hunt
This seems to work:

[server.xml excerpted]
---
!-- uses standard web.xml as deployment descriptor --
Context path=myWWW
  docBase=appXyz
  ...
  /

!-- uses webdav.xml as deployment descriptor --
Context path=myWebDav
  docBase=appXyz
  defaultWebXml=full pathspec\WEB-INF\webdav.xml
  ...
  /
---

where webdav.xml contains the standard webdav servlet definitions and
necessary security constraints.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]