openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aabbcc (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2129) Getting WARN messages [main] openjpa.MetaData - Found duplicate metadata or mapping for "class xxx.xxx". Ignoring.
Date Tue, 14 Feb 2012 15:00:04 GMT

    [ 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

       

Mime
View raw message