When I startup Tomcat 3.2.1 on Redhat 6.2, I note that the contexts I've
defined seem to be displayed twice, once with the name of my host first,
then again without the hostname.  I am using the virtual host concept via
Apache/tomcat.

>From tomcat.log:
2001-03-05 08:32:09 - ContextManager: Adding context Ctx(
dwww.myeastside.com:/pub )
2001-03-05 08:32:09 - ContextManager: Adding context Ctx(
dssd1.myeastside.com:/ssd )
2001-03-05 08:32:09 - ContextManager: Adding context Ctx( /ssd )
2001-03-05 08:32:09 - ContextManager: Adding context Ctx( /pub )

The servlet.log:
2001-03-05 08:32:09 - path="/pub" :jsp: init
2001-03-05 08:32:09 - path="/pub" :WebAppStartup: init
2001-03-05 08:32:10 - path="/ssd" :jsp: init
2001-03-05 08:32:10 - path="/ssd" :WebAppStartup: init
2001-03-05 08:32:10 - path="/ssd" :jsp: init
2001-03-05 08:32:10 - path="/ssd" :WebAppStartup: init
2001-03-05 08:32:10 - path="/pub" :jsp: init
2001-03-05 08:32:10 - path="/pub" :WebAppStartup: init

What is causing this duplicate effort?  Normally I wouldn't mind, but the
WebAppStartup servlet is a special servlet that is supposed to be called
once for each context (I'm presuming that each context has its own
classloader so that even with my "singleton" classes I'll actually get one
instance in each each context), yet you can see that it's called twice in
each context.

This is how I defined those contexts in server.xml:
        <Host name="dwww.myeastside.com" >
           <Context path="/pub"
                 docBase="webapps/pub"
                 crossContext="true"
                 debug="0"
                 reloadable="true"
                 trusted="false" >
           </Context>
        </Host>
        <Host name="dssd1.myeastside.com" >
           <Context path="/ssd"
                 docBase="webapps/ssd"
                 crossContext="true"
                 debug="0"
                 reloadable="true"
                 trusted="false" >
           </Context>
        </Host>


David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to