I try to locate a resource that exists in the root of a jarfile.
Therefor I use the following code:
InputStream istrm = ClassLoader.getSystemResourceAsStream("config.xml");
This does work in other applications, but when I use the jarfile in
jboss 3.0.4 the resource is not found and istrm == null.
Does the classloader of jboss locate resourcefiles in jars correctly?
Or do I have to use another strategy?
I had to use the ContextClassLoader of the current thread...