You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "aabbcc (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/02/16 09:17:04 UTC
[jira] [Issue Comment Edited] (OPENJPA-2129) Getting WARN messages
[main] openjpa.MetaData - Found duplicate metadata or mapping for "class
xxx.xxx". Ignoring.
[ 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:16 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, 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.
was (Author: asbasb):
Please ignore above build error.
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