(0003235)
|
ferg
|
07-02-08 15:12
|
|
e to ask about the following bug:
http://bugs.caucho.com/view.php?id=1095 [^]
which was fixed in 3.0.19. Now that we're working against 3.1.6, I'm seeing what appears to be the same issue so it may be a regression.
Environment: a standard webapp that's loading classes JARd up in WEB-INF/lib using <library-loader>.
The app makes the call:
URL url = MyClass.class.getResource("/my/directory");
Unfortunately this is always returning null even though /my/directory exists in one of the jars and has multiple classes within. This is a problem as the code needs to iterate over the entries in the directory.
Cases where it works fine:
1. If I UNjar the contents of the jar in to WEB-INF/classes (this is my current workaround).
2. Or If I pass an argument to load a specific resource that exists and is not a directory, e.g. "/my/directory/Another.class"
3. Or if the jar is included in the system classpath when resin starts. |
|