tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.
Date Mon, 23 Jan 2006 15:08:41 GMT
> From: Gema Berdasco [mailto:gema.berdasco@deimos-space.com] 
> Subject: Cannot access external resources from a webapp when 
> upgrading Tomcat above 5.5.9 version.
> 
> we use the following entry on the context.xml file of the webapp:
> 
> <Context docBase="/path/to/resources" path="/contents">
>     <Resources 
> className="org.apache.naming.resources.FileDirContext"/>
> </Context>

You don't explicitly say where your <Context> element is, but the
implication is that it's inside a file named context.xml in your
webapp's META-INF directory.  If that is the case, both the path and
docBase attributes are ignored.  See:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Look at the descriptions for the two attributes in question.  The
docBase attribute is intended to provide the location of the webapp, not
a link to external resources.

Tomcat versions after 5.5.9 seem to have tightened up enforcement of the
configuration rules.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


Mime
View raw message