From dev-return-6343-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Oct 01 14:26:39 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 66166 invoked from network); 1 Oct 2007 14:26:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 14:26:33 -0000 Received: (qmail 44060 invoked by uid 500); 1 Oct 2007 14:24:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 44026 invoked by uid 500); 1 Oct 2007 14:24: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 44016 invoked by uid 99); 1 Oct 2007 14:24: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 07:24:31 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB 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 14:24:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AAF0B714209 for ; Mon, 1 Oct 2007 07:23:50 -0700 (PDT) Message-ID: <23707464.1191248630687.JavaMail.jira@brutus> Date: Mon, 1 Oct 2007 07:23:50 -0700 (PDT) From: "Kevin Sutter (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (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 reassigned OPENJPA-387: ------------------------------------ Assignee: Daniel Lee > 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 > > > 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.