You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/07/02 13:35:11 UTC

[jira] [Commented] (AXIS2-4072) URLClassloader locking jarfiles on Windows

    [ https://issues.apache.org/jira/browse/AXIS2-4072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360174#comment-15360174 ] 

Hudson commented on AXIS2-4072:
-------------------------------

SUCCESS: Integrated in Axis2 #3571 (See [https://builds.apache.org/job/Axis2/3571/])
AXIS2-5792: Use the same class loaders on Windows as on Unix, to make EnableChildFirstClassLoading work (AXIS2-4349 only implementd that feature for Unix). This effectively reverts the change implemented in AXIS2-4072 and instead levarages the fact that on recent Java versions, URLClassLoader has a close() method. (veithen: rev 1751057)
* axis2/modules/kernel/src/org/apache/axis2/classloader/AbstractResourceHandle.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/AbstractUrlResourceLocation.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/DirectoryResourceHandle.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/DirectoryResourceLocation.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/IoUtil.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/JarFileClassLoader.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/JarFileUrlConnection.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/JarFileUrlStreamHandler.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/JarResourceHandle.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/JarResourceLocation.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/JarStreamHandlerFactory.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/ResourceEnumeration.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/ResourceFinder.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/ResourceHandle.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/ResourceLocation.java
* axis2/modules/kernel/src/org/apache/axis2/classloader/UrlResourceFinder.java
* axis2/modules/kernel/src/org/apache/axis2/deployment/DeploymentEngine.java
* axis2/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
* axis2/modules/kernel/test/org/apache/axis2/classloader


> URLClassloader locking jarfiles on Windows 
> -------------------------------------------
>
>                 Key: AXIS2-4072
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4072
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>         Environment: Windows XP, Geronimo 2.1.3
>            Reporter: Tim McConnell
>            Assignee: Jarek Gawor
>             Fix For: nightly
>
>         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 was sent by Atlassian JIRA
(v6.3.4#6332)

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