tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: root context equivalent to another context?
Date Fri, 03 Dec 2004 14:05:39 GMT

Hi,
Turn off autoDeploy in the Host element in server.xml.

Yoav Shapira http://www.yoavshapira.com
 

>-----Original Message-----
>From: Frank Morton [mailto:fmorton@base2inc.com]
>Sent: Thursday, December 02, 2004 10:30 PM
>To: tomcat-user@jakarta.apache.org
>Subject: root context equivalent to another context?
>
>I have a context currently defined in server.xml as:
>
>         <Context path="/mycity" docBase="mycity" debug="9"
>reloadable="true" crossContext="true" >
>                 <Loader checkInterval="5" />
>                 <Logger
>className="org.apache.catalina.logger.SystemOutLogger" timestamp="true"
>/>
>         </Context>
>
>It is deployed as a single war file mycity.war. This works fine. But,
>now I want the context created by this to be equivalent to the root
>context. I thought I could add:
>
>         <Context path="" docBase="mycity" debug="9" reloadable="true"
>crossContext="true" >
>                 <Loader checkInterval="5" />
>                 <Logger
>className="org.apache.catalina.logger.SystemOutLogger" timestamp="true"
>/>
>         </Context>
>
>And it does work since both are pointed at the same docBase, but it
>apparently creates two separate contexts. The same servlet will run
>init() each time it is first invoked in each context, which creates
>major problems for us.
>
>Anyone have any suggestions?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message