tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: how to define duplicate context in Tomcat (server.xml)
Date Thu, 26 Feb 2004 13:42:22 GMT

You can include as many contexts and services as you want with the same
classes and even the same docBase (the context path has to be different
of course).  If you post your errors rather than just "it's not worked"
then we might be able to help more.

Cool email domain by the way, I noticed it yesterday when I approved
your subscription request.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Rina Shilo []
>Sent: Thursday, February 26, 2004 1:50 AM
>Subject: how to define duplicate context in Tomcat (server.xml)
>I want to duplicate my service that run under tomcat so I'll have it
>on my web server under 2 different names.
>(since I need 1 service running, and the second to be a test service).
>My tomcat service include JS, JSP, Classes.
>How to configure the tomcat to start both services?
>I tried already to define it as new context in the same service in the
>server.xml - and it's not worked.
>I tried already to define it as new context in a new service tag in the
>server.xml - and it's not worked.
>Just one of them work, the second failed. seems to me its because they
>include similar classes file/name.
>this is how it look like:
> <Host name="Service" debug="0" appBase=""
>  unpackWARs="true" autoDeploy="true">
>        <Valve className="org.apache.catalina.valves.AccessLogValve"
>                 directory="c:/Program Files/Logs"
>                 pattern="common" resolveHosts="false"/>
> <Context path="/A" docBase="c:\Program Files\A" crossContext="false"
>debug="0" reloadable="false" />
> <Context path="/B" docBase="c:\Program Files\B" crossContext="false"
>debug="0" reloadable="false" />
>        </Host>
>can someone help me in this?

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:
For additional commands, e-mail:

View raw message