You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Harmsen, Jan" <Ja...@softwareag.com> on 2003/07/31 17:08:25 UTC

RE: tomcat-5.0.5 cannot access jar resources in WEB-INF/lib but o nly unzipped in WEB-INF/classes

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.


Best regards,

Jan


 

Re: tomcat-5.0.5 cannot access jar resources in WEB-INF/lib but o nly unzipped in WEB-INF/classes

Posted by Remy Maucherat <re...@apache.org>.
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'll assume the problem could be caused by the '.', which may not be the 
case. I recommend sending a test case.

Remy



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


Re: tomcat-5.0.5 cannot access jar resources in WEB-INF/lib but o nly unzipped in WEB-INF/classes

Posted by Remy Maucherat <re...@apache.org>.
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