cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bart Dijkstra <>
Subject File locked with jar: protocol
Date Tue, 31 Aug 2004 13:05:53 GMT
Hi all,

I'm using the jar: protocol to extract an XML document
from a zipfile as follows:

<map:match pattern="myTest">
  <map:generate type="file" 
  <map:serialize type="xml"/>

As you can see, all very normal using the standard

After running this pipeline though, the zipfile is
locked  by the cocoon (java) process. Only after
stopping the webserver, the file is released and may
be changed/deleted. 

I have tested this in several
environments/configurations combination and the
problem occurs on all of them:

- Cocoon 2.1.4 and 2.1.5
- Running on Tomcat 5.0 and Jetty 4.2.19
- Running on Solaris 8 and Windows XP

On Solaris I even ran out of File Descriptors at some

I suspect the problem  might be caused by the
that, if I understand correctly, is responsible for
handling the jar: protocol. It seems the
release(Source) is not handled properly for jar:. I
guess one workaround is to write a JarGenerator to
handle all of the jar io/extraction but this sort of
defeats the whole purpose of having the jar: protocol
and component management.

Has anyone had any similar experiences or maybe ideas?

Thanks much,

Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message