You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Hardy <ah...@cyberspaceroad.com> on 2004/02/07 13:46:36 UTC

root context loaded again under its docbase name

I've seen and asked about this about a year ago but since it wasn't 
important, I didn't bother chasing it up when I found no solution. It's 
happening again.

Tomcat loads my context twice. Once for root and once with the name of 
its WAR file.

My war file is called gargantus.war. This is my <Host>:

<Host name="localhost" appBase="webapps"
   unpackWARs="false"
   autoDeploy="false"
   deployXML="true" >


and this is my context (which is found in META-INF/context.xml):

<Context path="" docBase="gargantus.war" cachingAllowed="false"
     reloadable="false" >

Anybody else with the same setup see this? Bug or not bug?

Interestingly tomcat creates working files in work/Catalina/localhost/_/ 
AND in work/Catalina/localhost/gargantus/ even when I only access the 
root context.

Adam

-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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


Re: root context loaded again under its docbase name

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
I get no error message - I just grepped the log file. For me the problem 
is totally benign - unless I decide that I want to have a context with 
the same name as my root context's war file.

I suggest that you are getting an error because you have doubled the 
<Context> somehow - perhaps you still have it in your server.xml? Maybe 
you have an old .xml file in conf/Catalina/localhost/ ?

Or maybe for you it lies in the way you declared the context.

Adam

On 02/07/2004 03:18 PM Hernani Mourao wrote:
> I definitely have the same problem. And Tomcat does not execute context.xml.
> I presume is due to the error message: context already in use.
> 
> Do you have the some problem?
> 
> Hernani
> 
> -----Original Message-----
> From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com]
> Sent: sabado, 7 de Fevereiro de 2004 12:47
> To: Tomcat Users List
> Subject: root context loaded again under its docbase name
> 
> 
> I've seen and asked about this about a year ago but since it wasn't
> important, I didn't bother chasing it up when I found no solution. It's
> happening again.
> 
> Tomcat loads my context twice. Once for root and once with the name of
> its WAR file.
> 
> My war file is called gargantus.war. This is my <Host>:
> 
> <Host name="localhost" appBase="webapps"
>    unpackWARs="false"
>    autoDeploy="false"
>    deployXML="true" >
> 
> 
> and this is my context (which is found in META-INF/context.xml):
> 
> <Context path="" docBase="gargantus.war" cachingAllowed="false"
>      reloadable="false" >
> 
> Anybody else with the same setup see this? Bug or not bug?
> 
> Interestingly tomcat creates working files in work/Catalina/localhost/_/
> AND in work/Catalina/localhost/gargantus/ even when I only access the
> root context.
> 
> Adam
> 
> --
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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


RE: root context loaded again under its docbase name

Posted by Hernani Mourao <hm...@netcabo.pt>.
I definitely have the same problem. And Tomcat does not execute context.xml.
I presume is due to the error message: context already in use.

Do you have the some problem?

Hernani

-----Original Message-----
From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com]
Sent: sabado, 7 de Fevereiro de 2004 12:47
To: Tomcat Users List
Subject: root context loaded again under its docbase name


I've seen and asked about this about a year ago but since it wasn't
important, I didn't bother chasing it up when I found no solution. It's
happening again.

Tomcat loads my context twice. Once for root and once with the name of
its WAR file.

My war file is called gargantus.war. This is my <Host>:

<Host name="localhost" appBase="webapps"
   unpackWARs="false"
   autoDeploy="false"
   deployXML="true" >


and this is my context (which is found in META-INF/context.xml):

<Context path="" docBase="gargantus.war" cachingAllowed="false"
     reloadable="false" >

Anybody else with the same setup see this? Bug or not bug?

Interestingly tomcat creates working files in work/Catalina/localhost/_/
AND in work/Catalina/localhost/gargantus/ even when I only access the
root context.

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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