[jboss-user] [jBPM] - While i try to load the JBPMorm.xml and ProcessInstanceInfo.hbm.xml files in the persistence.xml file, it break out

星兰 蒋 do-not-reply at jboss.com
Thu Dec 6 05:22:11 EST 2012


星兰 蒋 [https://community.jboss.org/people/jiang_hoo] created the discussion

"While i try to load the JBPMorm.xml and ProcessInstanceInfo.hbm.xml files in the persistence.xml file,it break out"

To view the discussion, visit: https://community.jboss.org/message/780331#780331

--------------------------------------------------------------
Caused by: org.hibernate.DuplicateMappingException: Duplicate collection role mapping org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes
 at org.hibernate.cfg.Mappings.addCollection(Mappings.java:147)
 at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2085)
 at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060)
 at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381)
 at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
 at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
 at org.hibernate.cfg.Configuration.add(Configuration.java:716)
 at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:531)
 at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:291)
 at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1162)
 at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
 at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
 at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
 at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
 at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
 at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
 at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
 ... 46 more
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780331#780331]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121206/735de6bc/attachment.html 


More information about the jboss-user mailing list