tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [CATALINA]
Date Mon, 02 Apr 2001 22:58:58 GMT


On Mon, 2 Apr 2001, Scott Sanders wrote:

> Using the latest CVS of Catalina, I am having an issue with my web 
> application.  When I build my webapp with Ant, I create many xml files 
> under WEB-INF/classes/xml/oem/*.  Then when a request comes in, I use 
> getClass().getResource() to return the URL to the xml file.
> 
> In Tomcat 3.x (3.0,3.1,3.2,3.2.1), the URL returned looks something like 
> file:///opt/tomcat/webapps/app-name/WEB-INF/classes/xml/oem/file.xml
> 
> In Catalina, the URL returned is:
>    /WEB-INF/classes/xml/oem/file.xml
> 

Doesn't the actual URL returned have jndi: on the front?

> The problem is when I use this URL as an InputSource to my XSLT 
> processor (Saxon), which is contained in /WEB-INF/lib/saxon.jar, it says 
> that it cannot find the file.  In Tomcat 3.x, it finds the file fine and 
> continues processing.
> 

Could you provide a code snippet of exactly what you are trying?  I have
used resources from /WEB-INF/classes and JAR files under /WEB-INF/lib with
great success in Catalina, so it's probably something specific about what
you are doing.

> Any suggestions?  Is this a bug?  Undefined behavior?  Is there a 
> workaround?
> 
> Thanks,
> Scott Sanders
> 
> 

Craig



Mime
View raw message