tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: context loaded twice
Date Wed, 20 Sep 2000 17:17:34 GMT

> -----Original Message-----
> From:	Craig R. McClanahan [SMTP:Craig.McClanahan@eng.sun.com]
> Sent:	Wednesday, September 20, 2000 6:32 PM
> To:	tomcat-user@jakarta.apache.org
> Subject:	Re: context loaded twice
> 
> Alistair Hopkins wrote: 
> 
> 	If I set a context myContext to be the root context in server.xml 
> 
> 	        <Context path="" 
> 	                 docBase="webapps/myContext" 
> 	                 debug="0" 
> 	                 reloadable="false" > 
> 	        </Context> 
> 
> 	then it is accessible either through /  or through /myContext/, 
> 	so it is loading two copies into memory.  This is a waste and could
> have weird effects. 
> 	 
> 
> One way to do this would be to move your document base out from under
> $TOMCAT_HOME/webapps where the automatic configuration occurs.  You can do
> this by specifying an absolute pathname for the docBase attribute
> (although if I remember correctly 3.1 has problems with this but it works
> in 3.2). 
	[Kitching Simon]  
	I've been using tomcat 3.1 with an absolute docBase for about 3
months, and haven't seen any problems.....must have been fixed

> Craig McClanahan 
> 
> ==================== 
> See you at ApacheCon Europe < <http://www.apachecon.com>>! 
> Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing 
> Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ 
>                                     Applications to Tomcat 
>  

Mime
View raw message