From dev-return-20139-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Feb 14 15:52:26 2012 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 700B590F7 for ; Tue, 14 Feb 2012 15:52:26 +0000 (UTC) Received: (qmail 62450 invoked by uid 500); 14 Feb 2012 15:52:26 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 62415 invoked by uid 500); 14 Feb 2012 15:52:26 -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 62406 invoked by uid 99); 14 Feb 2012 15:52:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 15:52:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 15:52:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B08A21B796C for ; Tue, 14 Feb 2012 15:51:59 +0000 (UTC) Date: Tue, 14 Feb 2012 15:51:59 +0000 (UTC) From: "Rick Curtis (Commented) (JIRA)" To: dev@openjpa.apache.org Message-ID: <176362551.36796.1329234719724.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <857653771.35781.1329209640040.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring. 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-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207789#comment-13207789 ] Rick Curtis commented on OPENJPA-2129: -------------------------------------- > also added the property in persistence.xml to support openjpa.RuntimeUnenhancedClasses. Please, do not set that property. RuntimeUnenhancedClasses has numerous known bugs and you are using openjpa-maven-plugin to perform enhancement so it is unnecessary. INFO: Loading XML bean definitions from class path resource [XXX.xml] INFO: Loading XML bean definitions from class path resource [META-INF/spring/XXX.xml] What are the names of those files? Can we see the contents of your persistence.xml file? Do you have annotations in your Entity files that you're trying to override, or are you using just orm.xml files? Can you post a re-creatable unit test? > Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring. > ------------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-2129 > URL: https://issues.apache.org/jira/browse/OPENJPA-2129 > Project: OpenJPA > Issue Type: Bug > Components: jpa > Affects Versions: 2.1.1 > Reporter: aabbcc > > I am trying to execute Junit test for ORM mapping using OPENJPA2.1.1 > Getting below Duplicate OpenJPA meta data warning > [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring. > It is not able to execute actual code. There are no two mapping files with same content. It seems OpenJPA parsing the same orm.xml location twice. > It seems there is a bug. Please look into this issue and fix it or suggest alternative solution as soon as possible. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira