Gema Berdasco wrote:
> 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.

Does your docBase (/path/to/resources) point to a directory within the 
<Host>'s appBase? If so, then docBase will be ignored and you should find a 
corresponding warning message in the log file.

Regards
  mks

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

Reply via email to