tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject Re: tomcat-5.0.5 cannot access jar resources in WEB-INF/lib but o nly unzipped in WEB-INF/classes
Date Thu, 31 Jul 2003 16:06:53 GMT
Harmsen, Jan wrote:
> Hi Remy,
> 
>>The first thing to check is if the specified file exists, and if it 
>>still fails, provide a test case.
> 
> loading seems to work only partially:
> 
> the structure of the jar file is
> 
> org/eclipse/xsd/plugin.properties
> org/eclipse/xsd/cache/www.w3.org/2001/MagicXMLSchema.xsd
> ... plus many more dtds + XML schemata
> 
> while tomcat-5.0.5 loads plugin.properties to
> loader/org/eclipse/xsd/plugin.properties
> it does not load MagicXMLSchema.xsd. The only file that
> exists in Tomcats loader directory is plugin.properties.

I tested it:
java.net.URL url = 
MyServlet.class.getResource("org/eclipse/xsd/cache/www.w3.org/2001/MagicXMLSchema.xsd");
url.openStream();

The property file (which is present only in a JAR in /WEB-INF/lib) is 
correctly read and extracted to the work directory.

Please provide a test case along with infomation on your environment.

Remy


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


Mime
View raw message