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 Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.
Date Mon, 23 Jan 2006 11:41:05 GMT
Hello,

For a webapp deployed on Tomcat 5.5.9 to access external resources,
which we don't want to be deleted when the application is undeployed, 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>

Having configured this, we can access the files under /path/to/resources
through the URL http://localhost:8080/contents.

This worked perfectly with Tomcat 5.5.9, but when upgrading to Tomcat
5.5.10 or above (and we've tested on 5.5.10, 5.5.12 and 5.5.15) the webapp
cannot access the external resources we place outside of the Tomcat
webapps directory.

Is this a bug or a better method to access external resources from a
webapp has been defined from version 5.5.10?

Thanks in advance,

Gema Berdasco Valderrábano

División de Transferencia de Tecnología
Deimos Space S.L.

Ronda de Poniente 19,
Edificio Fiteni VI, P. 2, 2º
28760 Tres Cantos
Madrid, España
Tel +34 91 806 24 80
e-mail: gema.berdasco@deimos-space.com


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


Mime
View raw message