You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Morten <li...@kikobu.com> on 2003/11/06 18:37:04 UTC
Tomcat doesn't explode war file when context is declared in server.xml
Hi,
I've added my context in server.xml:
<Context path="/tao" docBase="tao" debug="5" privileged="false">
...
But tomcat does not find and explode the tao.war in the webapps
directory. So I need to set the docBase to "tao.war" which is
not the required setup.
Any hints?
Thanks,
Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat doesn't explode war file when context is declared
in server.xml
Posted by Jacob Kjome <ho...@visi.com>.
I you define a context yourself, at least in Tomcat-4.x.x, you will have to
"explode" the .war file yourself before the server starts if you want to
point to the "tao" directory. In Tomcat5, you can point to "tao.war" and
it will explode it anyway and run out of the directory, which is exactly
what you want.
Note that if this is all you have defined for your context, don't define a
context at all. Just drop the .war file into "webapps" and Tomcat (4.x.xx
and 5.x.xx) will "explode" it and run from the directory.
Jake
At 06:37 PM 11/6/2003 +0100, you wrote:
>Hi,
>
>I've added my context in server.xml:
>
><Context path="/tao" docBase="tao" debug="5" privileged="false">
>...
>
>But tomcat does not find and explode the tao.war in the webapps
>directory. So I need to set the docBase to "tao.war" which is
>not the required setup.
>
>Any hints?
>
>Thanks,
>
>Morten
>
>
>
>
>---------------------------------------------------------------------
>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