On Thu, Mar 19, 2009 at 5:23 PM, Agent96
wrote:
>
> Thanks...I just came to the same conclusion too.
>
> URI uri = MyClass.class.getResource("/resources/xsd/Message.xsd").toURI()
> which resolves to myWebApp/WEB-INF/classes/resources/xsd/Message.xsd
>
That's not recommended.
Instead of using
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 3/19/2009 12:15 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> Subject: Re: URI resolving to tomcat/bin
>>
>>> ServletContext.getResourceAsStream(&qu
adatatechnology.com]
>> Subject: URI resolving to tomcat/bin
>
>
>> [TOMCAT_HOME]/Webapps/myWebApp/classes/resources/myFile.xml
>
> Classes are normally stored in myWebApp/WEB-INF/classes, but the above is
> acceptable, just unusual (assuming you fix the spelling of &qu
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: URI resolving to tomcat/bin
>
> > ServletContext.getResourceAsStream("/classes/resources/myFile.xml");
>
> I think Chuck meant:
>
> ServletContext.getResourceAsStream(&quo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Agent96,
On 3/19/2009 11:17 AM, Caldarale, Charles R wrote:
> ServletContext.getResourceAsStream("/classes/resources/myFile.xml");
I think Chuck meant:
ServletContext.getResourceAsStream("/WEB-INF/classes/resources/myFile.xml");
- -chris
-BEGIN
> From: Agent96 [mailto:matt.nel...@metadatatechnology.com]
> Subject: URI resolving to tomcat/bin
> [TOMCAT_HOME]/Webapps/myWebApp/classes/resources/myFile.xml
Classes are normally stored in myWebApp/WEB-INF/classes, but the above is
acceptable, just unusual (assuming you fix the sp
/resources/myFile.xml
or something like that.
Is this a Tomcat fix or a Java fix..
--
View this message in context:
http://www.nabble.com/URI-resolving-to-tomcat-bin-tp22601353p22601353.html
Sent from the Tomcat - User mailing list archive at