openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Lee (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-387) Getting "java.lang.ClassNotFoundException" when loading datacache plug-in which is a class outside of OpenJPA package.
Date Fri, 28 Sep 2007 01:26:50 GMT
Getting "java.lang.ClassNotFoundException" when loading datacache plug-in which is a class
outside of OpenJPA package.
----------------------------------------------------------------------------------------------------------------------

                 Key: OPENJPA-387
                 URL: https://issues.apache.org/jira/browse/OPENJPA-387
             Project: OpenJPA
          Issue Type: Bug
          Components: datacache
    Affects Versions: 1.0.0
            Reporter: Daniel Lee
             Fix For: 1.0.1, 1.1.0


Getting "java.lang.ClassNotFoundException" when loading datacache plug-in which is a class
outside of OpenJPA package.

This happens when loading the class as DatCache plug-in but it can potentially happen to any
plug-in classes that reside outside of OpenJPA package.  In order to load these classes, the
fix is to get the class loader (by calling findDerivedLoader with no interface loader, loader
= null) to load it again when the current class loading fails and the target class is not
part of OpenJPA package.  The same exception is still thrown if the second attempt fail or
the target class is actually part of OpenJPA.

Please see the patch for detail changes.

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


Mime
View raw message