You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ian Zabel <ia...@ezabel.com> on 2003/04/21 22:11:17 UTC

Tomcat 4.1.24: Context at / is loaded twice??

Hello all,

Our app is called orderit, and is deployed (and unpacked) as orderit.war to
$CATALINA_HOME/webapps.

We defined the root context as:

<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
...
<Context path="" docBase="orderit" debug="9"/>
...
</Host>

The problem is of course that tomcat loads this as TWO contexts: / and
/orderit.

How can I prevent this? We need to make sure our app is initialized only
once because a <servlet> is loaded in our web.xml which much only be run
once or else our app log files all get doubled up.

Anything I can do?

Thanks!
Ian.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Tomcat 4.1.24: Context at / is loaded twice??

Posted by Ian Zabel <ia...@ezabel.com>.
Sounds like a good idea.

How should I do that? Change the appBase for the Host? Or just modify the
docBase for the Context? If I modify the docBase to 
point to the .war, will Tomcat extract the war? (It needs to be extracted as
other server depend on files in it.)

If Tomcat won't extract the war in this case, how can I manually and
programatically extract it on our Solaris box?

Thanks,
Ian.


-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org] 
Sent: Monday, April 21, 2003 4:48 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.24: Context at / is loaded twice??


  Don't put your app under webapps (with respect to filesystem).

-Tim


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 4.1.24: Context at / is loaded twice??

Posted by Tim Funk <fu...@joedog.org>.
  Don't put your app under webapps (with respect to filesystem).

-Tim

Ian Zabel wrote:
> Hello all,
> 
> Our app is called orderit, and is deployed (and unpacked) as orderit.war to
> $CATALINA_HOME/webapps.
> 
> We defined the root context as:
> 
> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
> ...
> <Context path="" docBase="orderit" debug="9"/>
> ...
> </Host>
> 
> The problem is of course that tomcat loads this as TWO contexts: / and
> /orderit.
> 
> How can I prevent this? We need to make sure our app is initialized only
> once because a <servlet> is loaded in our web.xml which much only be run
> once or else our app log files all get doubled up.
> 
> Anything I can do?
> 
> Thanks!
> Ian.
> 
> 
> ---------------------------------------------------------------------
> 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