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
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
Matt
Caldarale, Charles R wrote:
>
>> From: Agent96 [mailto:matt.nel...@metadatatechnology.com]
> 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 spelling of