[
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