tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gema Berdasco" <gema.berda...@deimos-space.com>
Subject Re: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.
Date Tue, 24 Jan 2006 06:51:49 GMT
The situation is just you`ve said. Do you know any other way to access to
external resources?

----- Original Message ----- 
From: "Caldarale, Charles R" <Chuck.Caldarale@unisys.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, January 23, 2006 4:08 PM
Subject: RE: Cannot access external resources from a webapp when upgrading
Tomcat above 5.5.9 version.


> 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



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


Mime
View raw message