Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: jar ressource pb [solved]

mourad jaber

2003-06-04

Replies:

I reply myself, because I just find the solution by using :
this.getClass().getClassLoader().getResource("myFile.xml")


mourad jaber wrote:

> Hi,
> I'm trying to understand the folowing problem :
> I've got some xml files into the jar file of my webapp.
> when I use a stand alone java application to retreive that ressource
> by using ClassLoader.getSystemClassLoader().getResource("myfile.xml")
> it works...
> but it doesn't work any more ( I get null ) when I do it into my
> webapp...
> Any suggestion ?
> Thanks a lot
>
> Mourad
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.