You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Michael Horwitz (JIRA)" <ji...@apache.org> on 2006/05/12 11:11:30 UTC

[jira] Created: (SM-430) Self-first classloader fails when used with a shared library

Self-first classloader fails when used with a shared library
------------------------------------------------------------

         Key: SM-430
         URL: https://issues.apache.org/activemq/browse/SM-430
     Project: ServiceMix
        Type: Bug

  Components: servicemix-core  
    Versions: 2.0.2    
    Reporter: Michael Horwitz


The self-first classloader delegates correctly as long as it is not used with a shared library.

As soon as a shared library is added, it delegated to the shared library before trying to load the class itself. As I read the JBI specification this is not correct.

Path in source -> SelfFirstClassLoader calls findClass() on InstallationClassLoader, which searches shared libraries before delegating to the URLClassLoader parent. 

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


[jira] Resolved: (SM-430) Self-first classloader fails when used with a shared library

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-430?page=all ]
     
Guillaume Nodet resolved SM-430:
--------------------------------

    Fix Version: 3.0
     Resolution: Fixed
      Assign To: Guillaume Nodet

This has been fixed.
See:

Author: gnodet
Date: Wed Jun 21 08:00:03 2006
New Revision: 416002

URL: http://svn.apache.org/viewvc?rev=416002&view=rev
Log:
SM-465: improve support for shared libraries
Import XBEAN-22 patch until it is released



> Self-first classloader fails when used with a shared library
> ------------------------------------------------------------
>
>          Key: SM-430
>          URL: https://issues.apache.org/activemq/browse/SM-430
>      Project: ServiceMix
>         Type: Bug

>   Components: servicemix-core
>     Versions: 2.0.2
>     Reporter: Michael Horwitz
>     Assignee: Guillaume Nodet
>      Fix For: 3.0

>
>
> The self-first classloader delegates correctly as long as it is not used with a shared library.
> As soon as a shared library is added, it delegated to the shared library before trying to load the class itself. As I read the JBI specification this is not correct.
> Path in source -> SelfFirstClassLoader calls findClass() on InstallationClassLoader, which searches shared libraries before delegating to the URLClassLoader parent. 

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