tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Re: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.
Date Mon, 23 Jan 2006 11:56:46 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message