Mantis - Resin
Viewing Issue Advanced Details
2763 major always 07-01-08 12:49 07-03-08 11:35
bregnvig  
ferg  
urgent  
closed 3.1.6  
fixed  
none    
none 3.1.7  
0002763: Issue #0001095 reappear i 3.1.6
I had problem starting the eHour application.

Searching the bug tracking system I found 0001095 which describes my problem exactly. I tried to install the eHour application on Resin 3.0.23 and it works perfectly.

Notes
(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.
(0003238)
ferg   
07-03-08 11:35   
server/279{k,l}