tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
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":
> http://marc.info/?l=tomcat-user&m=122045686313688&w=2
> 
> 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.

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message