Brian O'Keefe [
https://community.jboss.org/people/brianok] created the discussion
"Persistence issue running jBPM 5.3 gwt-console-server on JBoss AS 7.1.1"
To view the discussion, visit:
https://community.jboss.org/message/739144#739144
--------------------------------------------------------------
Hi all,
Hopefully this is an easy issue, but I am trying to deploy gwt-console-server in JBoss AS
7.1.1 and I am getting the following error in the log (below) due to JPA it seems.
I'm guessing that the duplicate import info on the first two lines is causing the
failure, but I do not know why that is occurring. Any guesses?
Thanks,
Brian
15:13:41,383 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-2) HHH000071:
Duplicate import: org.jbpm.persistence.processinstance.ProcessInstanceInfo ->
org.jbpm.persistence.processinstance.ProcessInstanceInfo
15:13:41,399 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-2) HHH000071:
Duplicate import: org.jbpm.persistence.processinstance.ProcessInstanceInfo ->
ProcessInstanceInfo
15:13:41,399 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service
jboss.persistenceunit."jbpm-gwt-console-server.war#org.jbpm.persistence.jpa":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."jbpm-gwt-console-server.war#org.jbpm.persistence.jpa":
Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[rt.jar:1.6.0_30]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_30]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from
input stream
at
org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:3380)
at
org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3369)
at
org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3357)
at
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1334)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1724)
at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
... 9 more
Caused by: org.hibernate.DuplicateMappingException: Duplicate collection role mapping
org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes
at
org.hibernate.cfg.Configuration$MappingsImpl.addCollection(Configuration.java:2582)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2139)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2114)
at
org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:405)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:320)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:171)
at
org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:3377)
... 15 more
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/739144#739144]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]