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: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to