Thanks Chris and Chuck. I have created separate bases (e.g. aBase) and within 
it I have webapps\a and so on respectively. It works fine now. 
 
One question: I don't have the Context spec file like 
aBase\conf\catalina\localhost\a.xml etc, but it doesn't seem to be affecting 
anything. What's the significance of that?
 
- Rahul.

PS: This was a typo in original message $CATALINA_HOME\webapps\WEB-INF, should 
have been $CATALINA_HOME\webapps\a or b\WEB-INF



----- Original Message ----
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Thursday, March 8, 2007 6:55:06 AM
Subject: RE: Multiple Instances on one Machine


> From: Rahul [mailto:[EMAIL PROTECTED] 
> Subject: Multiple Instances on one Machine
> 
> I have two webapps "a" and "b" with their respective web.xml
> files in $CATALINA_HOME\webapps\WEB-INF.

That's incorrect right there, assuming webapps is declared as the
appBase for your <Host>.  Sounds like yet another case of attempting to
equate appBase and docBase when in fact they must never be the same
location.

> I have two server.xml files (server-a.xml and server-b.xml),
> one for each webapp with different server and connector ports. 

Do the <Host> elements in each of your server-*.xml files declare the
same appBase?  If so, you're going to get both apps deployed in both
Tomcat instances.

> The $CATALINA_BASE/conf/Catalina/localhost directory contains 
> a.xml and b.xml files with <Context path="/a" docBase="a" 
> debug="0" reloadable="true"/> and <Context path="/b" 
> docBase="b" debug="0" reloadable="true"/> entries respectively. 

The path attribute is not allowed in this situation; it is instead
derived from the name of the .xml file.

> While trying to debug that I am wondering if my way of using 
> two server.xml files for this scenario correct or is there 
> any other way?

As Chris pointed out, read RUNNING.txt for the correct mechanism.  Your
current approach will have lots of file collisions between the two
instances, causing no end of grief.

> (A similar solution is mentioned at 
> http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html

Don't use such an ancient set of instructions - it's inappropriate for
version 5.5.  Stick with the doc for the level you've got.

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


 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html

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