Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 28105 invoked from network); 11 Mar 2009 15:39:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 15:39:15 -0000 Received: (qmail 14100 invoked by uid 500); 11 Mar 2009 15:39:15 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 13934 invoked by uid 500); 11 Mar 2009 15:39:14 -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 13923 invoked by uid 99); 11 Mar 2009 15:39:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 08:39:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 15:39:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7486D234C003 for ; Wed, 11 Mar 2009 08:38:50 -0700 (PDT) Message-ID: <1879692778.1236785930461.JavaMail.jira@brutus> Date: Wed, 11 Mar 2009 08:38:50 -0700 (PDT) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-932) Runtime enhancer doesn't work propery if there is a trailing persistence.xml file on the classpath. In-Reply-To: <809053699.1235159461806.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis updated OPENJPA-932: -------------------------------- Attachment: (was: OPENJPA-932-unitTest.patch) > Runtime enhancer doesn't work propery if there is a trailing persistence.xml file on the classpath. > --------------------------------------------------------------------------------------------------- > > Key: OPENJPA-932 > URL: https://issues.apache.org/jira/browse/OPENJPA-932 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 1.2.0, 2.0.0-M1, 2.0.0 > Reporter: Rick Curtis > Attachments: OPENJPA-932-2.0.patch, OPENJPA-932-2.0.patch > > > I have an application where I am using runtime class enhancement via the javaagent and I set openjpa.RuntimeUnenhancedClasses=unsupported. My application works fine when running on 1.1.0 but when I moved to 1.2.0 (and 2.0.0) I started getting errors because my classes aren't being enhanced. > After debugging I determined that I had a jar on the end of my classpath that had a META-INF/persistence.xml file in it. The extra persistence.xml file has no PUs defined, and should have been ignored. When I removed that jar from my classpath things starting working again. It also works if I put my META-INF/persistence.xml file on the end of my classpath. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.