because they are in the WebappClassLoader which the system class loader cannot see.
Either use:
MyClass.class.getResource("/package/path/to/resource/myfile.xml");
or
MyClass.class.getClassLoader().getResource("package/path/to/resource/myfile.xml");
or if your resource files exist in WEB-INF or something like that, use...
context.getResource("/WEB-INF/myfile.xml");
Jake
At 05:07 PM 6/4/2003 +0200, you 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
