-
1. Re: UnifiedClassLoader.getResources not working
juhalindfors Feb 21, 2003 5:20 PM (in response to laurent.wozniak)If you can implement it, go ahead, and send a patch.
-
2. Re: UnifiedClassLoader.getResources not working
julien1 Feb 21, 2003 5:39 PM (in response to laurent.wozniak)I am interested in that feature too.
Could you provide use case ?
let's say I have package a.b.c and I put
two files in a/b/c if the jar.
what will getResources("a/b/c") return exactly ?
an enumeration of only the files ?
files + subpackages ?
julien -
3. Re: UnifiedClassLoader.getResources not working
laurent.wozniak Feb 25, 2003 4:19 AM (in response to laurent.wozniak)I've posted the bug and the corresponding patch at sourceforge:
http://sourceforge.net/tracker/index.php?func=detail&aid=692157&group_id=22866&atid=376685
> what will getResources("a/b/c") return exactly ?
From java.lang.ClassLoader:
Finds all the resources with the given name
If you have resources with the same name in multiple jars,
getResources gives you all the urls to theses resources.
In my case, I have a marker file in each jar, let's call it "marker.properties".
With getResources("marker.properties") I'm supposed to get all of them, not only the first one as with getResource().
In current implementation, you find only the resources located in the same jar as the class that called getResources.
To reproduce the problem, just have JBoss load 2 jars, for exemple by adding those 2 jars in the classpath of a xxx-service.xml -
4. Re: UnifiedClassLoader.getResources not working
marc.fleury Apr 27, 2003 2:29 AM (in response to laurent.wozniak)a bug a patch and a test,
merci Laurent,
marcf