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 2DA32911C for ; Thu, 16 Feb 2012 08:19:29 +0000 (UTC) Received: (qmail 99395 invoked by uid 500); 16 Feb 2012 08:19:28 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 99350 invoked by uid 500); 16 Feb 2012 08:19:28 -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 99341 invoked by uid 99); 16 Feb 2012 08:19:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 08:19:28 +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; Thu, 16 Feb 2012 08:19:24 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 316341BA8AE for ; Thu, 16 Feb 2012 08:19:04 +0000 (UTC) Date: Thu, 16 Feb 2012 08:19:04 +0000 (UTC) From: "aabbcc (Issue Comment Edited) (JIRA)" To: dev@openjpa.apache.org Message-ID: <152115072.45390.1329380344203.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <857653771.35781.1329209640040.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (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 [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208340#comment-13208340 ] aabbcc edited comment on OPENJPA-2129 at 2/16/12 8:17 AM: ---------------------------------------------------------- I have removed the peoperty "RuntimeUnenhancedClasses " from persistence.xml now I have creates different spring bean definitions files...XXX below refers to two different file. You may call one as ABC and other XYZ 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] Now persistence.xml contain entries of ORM mapping files and jpql xml file. I am not using annotations, the orm.xml file has all configurations. But getting same error Duplicate WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx1". Ignoring. [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx2". Ignoring. [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx1". Ignoring. [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx2". Ignoring. was (Author: asbasb): I have removed the peoperty "RuntimeUnenhancedClasses " from persistence.xml now I have creates different spring bean definitions files...XXX below refers to two different file. You may call one as ABC and other XYZ 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] Now persistence.xml contain entries of ORM mapping files and jpql xml file. I am not using annotations, just specifies all configuration in orm.xml files. But getting same error Duplicate WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx1". Ignoring. [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx2". Ignoring. [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx1". Ignoring. [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx2". Ignoring. > 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