Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 74061 invoked from network); 1 Oct 2007 21:47:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 21:47:41 -0000 Received: (qmail 57232 invoked by uid 500); 1 Oct 2007 21:47:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 57196 invoked by uid 500); 1 Oct 2007 21:47:31 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 57187 invoked by uid 99); 1 Oct 2007 21:47:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 14:47:31 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 21:47:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8E45471420A for ; Mon, 1 Oct 2007 14:46:50 -0700 (PDT) Message-ID: <5035572.1191275210563.JavaMail.jira@brutus> Date: Mon, 1 Oct 2007 14:46:50 -0700 (PDT) From: "Kevin Sutter (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-387) Getting "java.lang.ClassNotFoundException" when loading datacache plug-in which is a class outside of OpenJPA package. In-Reply-To: <21517268.1190942810554.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Sutter resolved OPENJPA-387. ---------------------------------- Resolution: Fixed Resolved 1.0.x Branch and 1.1.0 Trunk. > 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.