axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim McConnell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-4072) URLClassloader locking jarfiles on Windows
Date Thu, 09 Oct 2008 22:18:46 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim McConnell updated AXIS2-4072:
---------------------------------

    Attachment: 4072-2.patch

As requested by Jarek I'm attaching my second patch. This one will swap the URLClassLoader
instantiated in 
package org.apache.axis2.deployment.util.Utils.getClassLoader() with a JarFileClassLoader.
It also explicitly calls the destroy() operation on those JarFileClassLoader(s) where appropriate
and necessary. Note that this patch is mutually exclusive of the first patch. Thanks 

> URLClassloader locking jarfiles on Windows 
> -------------------------------------------
>
>                 Key: AXIS2-4072
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4072
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>         Environment: Windows XP, Geronimo 2.1.3
>            Reporter: Tim McConnell
>            Assignee: Jarek Gawor
>         Attachments: 4072-2.patch, AXIS2-4072.patch
>
>
> There is at least one scenario using Axis2 and Geronimo that is causing jarfiles to get
locked on Windows such that a deployed WAR cannot be either redeployed or uninstalled. Here
is a brief description of the failing scenario:
> 1. A WAR file containing various jarfiles in the /lib directory is deployed on Geronimo
2.1.3
> 2. Navigate to the deployed app's address to generate the WSDL for the web service
> 3. Redeploy or uninstall of the WAR will now fail since all the jarfiles in the WAR /lib
directory are locked by Windows and cannot be deleted.
> What appears to be happening is that there are three Axis2 URLClassLoaders in this scenario
and at least two of them are creating their own ClassPath and URLClassPath$JarLoader objects
that apparently are locking the jarfiles in the /lib directory. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message