You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Kevin Sutter (JIRA)" <ji...@apache.org> on 2007/10/01 23:42:50 UTC

[jira] Updated: (OPENJPA-387) Getting "java.lang.ClassNotFoundException" when loading datacache plug-in which is a class outside of OpenJPA package.

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

Kevin Sutter updated OPENJPA-387:
---------------------------------

    Attachment: OPENJPA-387.patch

Talked this over with Daniel and we modified the patch slightly.  New patch is attached as OPENJPA-387.patch.  Will be committing soon...

> 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
>            Assignee: Daniel Lee
>             Fix For: 1.0.1, 1.1.0
>
>         Attachments: JIRA387.zip, OPENJPA-387.patch
>
>
> 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.