Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 37766 invoked from network); 28 Sep 2007 01:27:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 01:27:13 -0000 Received: (qmail 73534 invoked by uid 500); 28 Sep 2007 01:27:03 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 73504 invoked by uid 500); 28 Sep 2007 01:27:03 -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 73495 invoked by uid 99); 28 Sep 2007 01:27:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 18:27:03 -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; Fri, 28 Sep 2007 01:29:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 89C8871403E for ; Thu, 27 Sep 2007 18:26:50 -0700 (PDT) Message-ID: <21517268.1190942810554.JavaMail.jira@brutus> Date: Thu, 27 Sep 2007 18:26:50 -0700 (PDT) From: "Daniel Lee (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-387) Getting "java.lang.ClassNotFoundException" when loading datacache plug-in which is a class outside of OpenJPA package. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.