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 (Created) (JIRA)" <ji...@apache.org> on 2012/02/14 09:54:00 UTC

[jira] [Created] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". 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

        

[jira] [Updated] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

aabbcc updated OPENJPA-2129:
----------------------------

    Comment: was deleted

(was: 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. When I run maven command "mvn -X -e package" on command line I am getting following error.

On Line 6 there is entry of class name with full package name.

Failed to execute goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance (enhancer) on project cmrs-ecrd-ds: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance (enhancer) on project ABCD: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: <openjpa-2.1.1-r422266:1148538 nonfatal general error> org.apache.openjpa.util.GeneralException: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:295)
	at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:228)
	at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:580)
	at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:400)
	at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
	at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:283)
	at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4675)
	at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4622)
	at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4592)
	at org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:741)
	at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:731)
	at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4587)
	at org.codehaus.mojo.openjpa.AbstractOpenJpaEnhancerMojo.enhance(AbstractOpenJpaEnhancerMojo.java:136)
	at org.codehaus.mojo.openjpa.AbstractOpenJpaEnhancerMojo.execute(AbstractOpenJpaEnhancerMojo.java:95)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more
Caused by: java.io.IOException: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:396)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:334)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:311)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:284)
	at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.parse(XMLPersistenceMetaDataParser.java:365)
	at org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:293)
	... 34 more
Caused by: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.getException(XMLMetaDataParser.java:675)
	at org.apache.openjpa.lib.meta.CFMetaDataParser.classForName(CFMetaDataParser.java:288)
	at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.classForName(XMLPersistenceMetaDataParser.java:2025)
	at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.startClass(XMLPersistenceMetaDataParser.java:851)
	at org.apache.openjpa.lib.meta.CFMetaDataParser.startElement(CFMetaDataParser.java:108)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.startElement(XMLMetaDataParser.java:449)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:688)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:393)
	... 39 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
 
)
    
> 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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207805#comment-13207805 ] 

aabbcc commented on OPENJPA-2129:
---------------------------------

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. When I run maven command "mvn -X -e package" on command line I am getting following error.

On Line 6 there is entry of class name with full package name.

Failed to execute goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance (enhancer) on project cmrs-ecrd-ds: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance (enhancer) on project ABCD: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: <openjpa-2.1.1-r422266:1148538 nonfatal general error> org.apache.openjpa.util.GeneralException: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:295)
	at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:228)
	at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:580)
	at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:400)
	at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
	at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:283)
	at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4675)
	at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4622)
	at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4592)
	at org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:741)
	at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:731)
	at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4587)
	at org.codehaus.mojo.openjpa.AbstractOpenJpaEnhancerMojo.enhance(AbstractOpenJpaEnhancerMojo.java:136)
	at org.codehaus.mojo.openjpa.AbstractOpenJpaEnhancerMojo.execute(AbstractOpenJpaEnhancerMojo.java:95)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more
Caused by: java.io.IOException: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:396)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:334)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:311)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:284)
	at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.parse(XMLPersistenceMetaDataParser.java:365)
	at org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:293)
	... 34 more
Caused by: org.xml.sax.SAXException: file:/Y:/workspaces/********/META-INF/orm/orm.xml  [Location: Line: 6, C: 79]: Type "xxx.xxx.Dummyclassname" could not be instantiated.
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.getException(XMLMetaDataParser.java:675)
	at org.apache.openjpa.lib.meta.CFMetaDataParser.classForName(CFMetaDataParser.java:288)
	at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.classForName(XMLPersistenceMetaDataParser.java:2025)
	at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.startClass(XMLPersistenceMetaDataParser.java:851)
	at org.apache.openjpa.lib.meta.CFMetaDataParser.startElement(CFMetaDataParser.java:108)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.startElement(XMLMetaDataParser.java:449)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:688)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
	at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:393)
	... 39 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
 

                
> 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

        

[jira] [Closed] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "Rick Curtis (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis closed OPENJPA-2129.
--------------------------------

    Resolution: Cannot Reproduce

Glad to hear everything is working. 

I'm closing this issue as you're no longer able to recreate the problem. Please reopen and provide additional data if you encounter it again.
                
> 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

        

[jira] [Issue Comment Edited] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Issue Comment Edited] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213474#comment-13213474 ] 

aabbcc commented on OPENJPA-2129:
---------------------------------

I have made changes in the project folder structure. Somehow this issue is fixed but not able to understand whether it was JPA API issue.
                
> 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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207737#comment-13207737 ] 

Rick Curtis commented on OPENJPA-2129:
--------------------------------------

> It is not able to execute actual code.
Please elaborate. What happened? 

> It seems there is a bug. Please look into this issue and fix it or suggest alternative solution as soon as possible. 
Again, you're going to need to provide more information to help us understand what is happening. 

Is this a JSE or JEE test? How are you enhancing your Entities? Can you provide a simple test to recreate the issue?
                
> 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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208340#comment-13208340 ] 

aabbcc commented on OPENJPA-2129:
---------------------------------

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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209384#comment-13209384 ] 

Rick Curtis commented on OPENJPA-2129:
--------------------------------------

Can you post the contents of your orm mapping files and the jpql xml file?
                
> 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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@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

        

[jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.

Posted by "aabbcc (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207759#comment-13207759 ] 

aabbcc commented on OPENJPA-2129:
---------------------------------

I have simple Junit test which try to retrieve data from Oracle database. I have created the ORM mapping file based on the Business Object Model.

To enhance entites I have a openjpa-maven-plugin with goal enhance and also added the property in persistence.xml to support openjpa.RuntimeUnenhancedClasses.

I get following log while running Junit Test. 

13-Feb-2012 17:00:55 org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: @TestExecutionListeners is not present for class XXX: using defaults.
17:00:56,298 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
17:00:56,329 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
17:00:56,548 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
17:00:57,033 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
17:00:57,033 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
17:00:57,033 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.

13-Feb-2012 17:00:58 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [XXX.xml]
13-Feb-2012 17:00:58 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/spring/XXX.xml]
13-Feb-2012 17:00:59 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@5a305a3: startup date [Mon Feb 13 17:00:59 GMT 2012]; root of context hierarchy
13-Feb-2012 17:01:00 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [XXX.properties]
13-Feb-2012 17:01:00 org.springframework.context.weaving.DefaultContextLoadTimeWeaver setBeanClassLoader
INFO: Found Spring's JVM agent for instrumentation
[AppClassLoader@29972997] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified
13-Feb-2012 17:01:04 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor <init>
INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
13-Feb-2012 17:01:07 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@44d044d0: defining beans [entityManagerFactory,org.springframework.context.config.internalBeanConfigurerAspect,org.springframework.context.weaving.AspectJWeavingEnabler#0,loadTimeWeaver,uk.co.cooperativebank.cmrs.entity.helper.ToStringMakerImpl#0,uk.co.cooperativebank.cmrs.entity.ecrd.ExtendedFieldMgrImpl#0,jpaAdapter,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,dataSource,transactionManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
13-Feb-2012 17:01:11 org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean createNativeEntityManagerFactory
INFO: Building JPA container EntityManagerFactory for persistence unit 'ABCDEF'
47  TRACE  [main] openjpa.Runtime - Default configuration information couldn't be loaded from any configuration provider.
0  TRACE  [main] openjpa.Runtime - Default configuration information couldn't be loaded from any configuration provider.
9094  ECRD  WARN   [main] openjpa.MetaData - Found duplicate metadata or mapping for "class XXX.XXX1".  Ignoring.
9094  ECRD  WARN   [main] openjpa.MetaData - Found duplicate metadata or mapping for " class XXX.XXX2".  Ignoring.
9453  ECRD  WARN   [main] openjpa.MetaData - Found duplicate metadata or mapping for "class XXX.XXX1".  Ignoring.
9453  ECRD  WARN   [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