uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Updated] (UIMA-1652) Cannot hot-install a PEAR twice
Date Fri, 09 Sep 2016 17:49:22 GMT

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

Richard Eckart de Castilho updated UIMA-1652:
---------------------------------------------
    Labels: Stale  (was: )

This issue is marked as "stale" due to inactivity for 5 years or longer. If no further activity
is detected on this issue, it is scheduled be closed as 'unresolved' in 3 months time from
now (Dec 2016).

> Cannot hot-install a PEAR twice
> -------------------------------
>
>                 Key: UIMA-1652
>                 URL: https://issues.apache.org/jira/browse/UIMA-1652
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.2.2
>         Environment: Windows
>            Reporter: Olivier Terrier
>              Labels: Stale
>         Attachments: uimaj-core_UIMA-1652.patch
>
>
> Due to a java bug "URLClassLoader.getResourceAsStream locks jar files"
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5041014
> When you use PackageInstaller.installPackage(installDir, pearFile, true, true); twice
from an application because you want to hot-redeploy a new version of a PEAR, you have an
error:
> java.io.IOException: Error while trying to clean the installation directory MyPearDir

> 	at org.apache.uima.pear.tools.InstallationController.extractFilesFromPEARFile(InstallationController.java:742)
> 	at org.apache.uima.pear.tools.InstallationController.extractPEARFile(InstallationController.java:854)
> 	at org.apache.uima.pear.tools.InstallationController.installComponent(InstallationController.java:1551)
> 	at org.apache.uima.pear.tools.PackageInstaller.installPackage(PackageInstaller.java:171)
> A patch is proposed in this article
> http://management-platform.blogspot.com/2009/01/classloaders-keeping-jar-files-open.html
> I have implemented it modifying the UIMAClassLoader and the InstallationTester classes
and it works
> I can submit a patch if you find it usefull



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message