[ 
http://nagoya.apache.org/jira/browse/GERONIMO-470?page=comments#action_55354 ]
     
Jeremy Boynes commented on GERONIMO-470:
----------------------------------------

This appears to be because the jar: URL handler locks the file and does not 
release its lock when a stream to one of the entries is closed. So

URL url = new URL("jar:" + fileURL.toString() + "!/WEB-INF/web.xml");
InputStream is = url.openStream();
// read dd
is.close();

will leave the file locked.

I have not found a way of forcing it to release the lock.

> Online deployer locks module file
> ---------------------------------
>
>          Key: GERONIMO-470
>          URL: http://nagoya.apache.org/jira/browse/GERONIMO-470
>      Project: Apache Geronimo
>         Type: Bug
>   Components: deployment
>     Reporter: Jeremy Boynes

>
> If I distribute a war file using the maven plugin and the online deployer, 
> the server locks the input file. The means that a second build of my app 
> fails as maven cannot delete the old war.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to