tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Guenther" <Carsten.Guent...@scalix.com>
Subject Re: Deploying a webapp under two different URIs
Date Thu, 22 Sep 2005 18:39:49 GMT
We are using 5.0.28 and we are using context deployment files.

On Thu, 2005-09-22 at 15:23 -0300, Ritchie Gillam wrote:
> Are you are using Tomcat 5.5.X?  If so it is not recommended to put any Context in the
server.xml file but instead in the application's META-INF/context.xml file.   
> 
> One of the problems we had was by putting the <Context> tag in server.xml itself
we couldn't redeploy an application without restarting Tomcat every time and of course in
a production environment this is not desirable.
> 
> 
> 
> Ritchie Gillam
> Programmer Analyst, Information Services, Halifax Regional Municipality
> Email: gillamr@halifax.ca
> Phone: (902) 490-6167
> Fax: (902) 490-6583
> 
> >>> Carsten.Guenther@scalix.com 09/22/05 3:14 pm >>>
> Hi,
> 
> I want to deploy the same webapp under two different URIs. I created two
> context descriptors like this:
> 
> <Context path="/a" docBase="/home/user/myapp" debug="0"
> privileged="false">
>     <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="a." suffix=".txt"
>         timestamp="true"/>
> </Context>
> 
> <Context path="/b" docBase="/home/user/myapp" debug="0"
> privileged="false">
>     <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="b." suffix=".txt"
>         timestamp="true"/>
> </Context>
> 
> Everything seems to work fine, I just want to make sure that this is the
> right thing to do. Are there any unwanted consequences bu doing this? Or
> is there even a better way for achieving this (without using Apache) ?
> 
> Thanks,
> Carsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


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