You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mourad jaber <mj...@centralpay.net> on 2003/06/04 17:17:47 UTC

Re: jar ressource pb [solved]

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@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>



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