tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alistair Hopkins <alist...@berthengron.co.uk>
Subject context loaded twice
Date Wed, 20 Sep 2000 15:02:39 GMT
<html>
<font size=2>If I set a context myContext to be the root context in
server.xml<br>
<br>
</font><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Context
path=&quot;&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
docBase=&quot;webapps/myContext&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
debug=&quot;0&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reloadable=&quot;false&quot; &gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Context&gt;<br>
<br>
</tt>then it is accessible either through /&nbsp; or through
/myContext/,<br>
so it is loading two copies into memory.&nbsp; This is a waste and could
have weird effects.<br>
<br>
I guess that if I want to disable automatic context loading and only load
ones I have explicitly named, I get rid of<br>
<br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ContextInterceptor
className=&quot;org.apache.tomcat.context.AutoSetup&quot; /&gt;<br>
<br>
</tt>?right?<br>
<br>
If I do do this, will the myContext.war file still be automatically
expanded for context which I have registered?<br>
<br>
Thanks,<br>
<br>
Al.<br>
<br>
</html>


Mime
View raw message