geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Problem with svn head, TagLibConfiguration, xerces, and jdk 1.5 (in geronimo)
Date Wed, 07 Mar 2007 21:29:47 GMT
I'm trying to run svn head inside the geronimo integration and ran  
into a bizarre problem (yet again, see below) in which xerces is  
closing a JarUrlStream which closes the entire ZipFile thus  
preventing any further access to the jar file.  Going back to 6.1.0  
fixes the problem.

The relevant part of the stacktraces I get look like:

java.lang.IllegalStateException: zip file closed
         at java.util.jar.JarFile.getInputStream(
         at org.mortbay.resource.URLResource.getInputStream 
         at org.mortbay.resource.JarResource.getInputStream 
         at org.mortbay.jetty.webapp.WebAppContext.startContext 
         at org.mortbay.jetty.handler.ContextHandler.doStart 
         at org.mortbay.jetty.webapp.WebAppContext.doStart 

Putting a breakpoing on ZipFile.close() I found that xerxes (I think  
the one in the apple 1.5.0_07 vm) is calling the close method when  
it's just trying to close an input stream from a jar entry.

I ran across this problem a couple years ago and solved it with an  
UnclosableInputStream that ignored close calls, but I don't quite see  
how to apply such a solution here.  Before I spend more time looking  
I wonder if anyone else has seen anything like this and might have  
advice on a solution.

david jencks

View raw message