tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Problems with <Context/>
Date Wed, 03 Sep 2008 20:08:54 GMT
Paul Pepper wrote:
> A discussion regarding the use of the <Context/> element, within
> server.xml and $CATALINA_BASE/conf/[enginename]/[hostname]/, grew from
> a thread with subject "Problem with JNDI environment entry resources":
> In that thread the question seemed to boil down to: Can, or should, a
> web application's war file name or exploded directory name be allowed
> to differ to the the context path?
> This problem arose for me out of an attempt to use a context file:
>   $CATALINA_BASE/conf/[enginename]/[hostname]/ROOT.xml
> with the following contents:
>   <Context docBase="appname.war" />

At best, you will get double deployment. If webapps/ROOT already exists it
is anybody's guess what will happen.

> Is it the docs, the code, or my understanding, that is out when I try
> to make a web app the default app using a file,
> $CATALINA_BASE/conf/[enginename]/[hostname]/ROOT.xml?

The docs could make clearer that an docBase should only ever be used if
outside the appBase.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message