geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (GERONIMO-1925) JSP Example Plugin Install/Uninstall/Install doesn't work
Date Tue, 02 May 2006 22:34:51 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-1925?page=comments#action_12377481 ] 

Aaron Mulder commented on GERONIMO-1925:
----------------------------------------

It is believed that this is caused by us leaking class loaders (potentially in thread locals)
and if we cleaned all that up it should be fixed.

In the mean time, it may be possible to force the class loader to close.  Dain and Jason suggested
trying something like the following in MultiParentClassLoader.destroy()

for (int i = 0; i < getURLs().length; i++) {
            URL url = getURLs()[i];
            if (url.getProtocol().equals("jar")) {
                try {
                    JarURLConnection connection = (JarURLConnection) url.openConnection();
                    if (connection.getJarFileURL().getProtocol().equals("file")) {
                        JarFile jarFile = connection.getJarFile();
                        if (jarFile != null) {
                            jarFile.close();
                        }
                    }
                } catch (Exception ignored) {
                }
            }
        }

> JSP Example Plugin Install/Uninstall/Install doesn't work
> ---------------------------------------------------------
>
>          Key: GERONIMO-1925
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1925
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: Plugins
>     Versions: 1.1
>     Reporter: Aaron Mulder
>     Assignee: Aaron Mulder
>     Priority: Critical
>      Fix For: 1.1

>
> From dev list:
> I ran the following test with today's build :
> 1. From console click plugins --> Search Plugins --> Jakarta JSP
> Examples   --> install plugin --> start g/jsp-examples../car
> 2. Web App Wars --> stop --> uninstall (jsp-examples)
> 3. repeat 1.
>   After clicking on 'plugins' the warnings are printed. The car is
> installed and started successfully and works. an error occurs in step2.
> The stack trace appears during 'start ....' in step 3.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message