persistence.xml not created for JBPM7.0.0 Final
yellapusony Jun 21, 2017 8:33 AMHi All,
I downloded JBPM 7.0.0 Final full installer zip and tried to installed with mysql datasource.I followed JBPM 7 documentation.Below are the commands I ran :
1.ant install.demo.noeclipse
2.ant start.demo
It downloaded wildfly10.1.0 with deployments folder having jbpm-console.war ,jbpm-casemgmt.war ,kieserver.war.I extracted the jbpm-console.war to check for persistence.xml in \jbpm-console.war\WEB-INF\classes\META-INF\ .But i could n't able to find any persistence.xml... Even i tried copy the persistence.xml from jbpm-installer-full-7.0.0.Final\jbpm-installer-7.0.0.Final\db\jbpm-persistence-JPA2.xml to jbpm-installer-full-7.0.0.Final\jbpm-installer-7.0.0.Final\wildfly-10.1.0.Final\standalone\deployments\jbpm-console.war\WEB-INF\classes\META-INF\persistence.xml (renamed the file).But it is giving so many errors like :
org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/Executor-orm.xml : origin(META-INF/Executor-orm.xml) |
org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/JBPMorm.xml : origin(META-INF/JBPMorm.xml)
org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/Taskorm.xml : origin(META-INF/Taskorm.xml)
org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/TaskAuditorm.xml : origin(META-INFTaskAuditorm.xml)
.....
And i tried to add the jars related to taht mapping files.. {jbpm-human-task-jpa-7.0.0.Final.jar,jbpm-persistence-jpa-7.0.0.Final.jar} after adding i didn't get error for
org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/JBPMorm.xml : origin(META-INF/JBPMorm.xml)
org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/Taskorm.xml : origin(META-INF/Taskorm.xml)
But still giving error for other files .. And i am able to find out which jars i need to add for left over mapping-files.
My doubt is like, the jbpm-installer should do all these persistence setup ,because it was the case till JBPM 6.5. But dont know why it was not for JBPM 7.
StackTrace:
17:22:46,608 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 65) MSC000001: Failed to start service jboss.persistenceunit."jbpm-console.war#org.jbpm.domain".__FIRST_PHASE__: org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpm-console.war#org.jbpm.domain".__FIRST_PHASE__: org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/Executor-orm.xml :
at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:120)
at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:102)
at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1.run(PhaseOnePersistenceUnitServiceImpl.java:129)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.hibernate.boot.MappingException: Unable to resolve explicitly named mapping-file : META-INF/Executor-orm.xml : origin(META-INF/Executor-orm.xml)
at org.hibernate.boot.model.process.internal.ScanningCoordinator.applyScanResultsToManagedResources(ScanningCoordinator.java:213)
at org.hibernate.boot.model.process.internal.ScanningCoordinator.coordinateScan(ScanningCoordinator.java:81)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare(MetadataBuildingProcess.java:98)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:199)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:149)
at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:28)
at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:40)
at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.<init>(TwoPhaseBootstrapImpl.java:39)
at org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.getBootstrap(HibernatePersistenceProviderAdaptor.java:159)
at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.createContainerEntityManagerFactoryBuilder(PhaseOnePersistenceUnitServiceImpl.java:242)
at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.access$800(PhaseOnePersistenceUnitServiceImpl.java:59)
at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:117)
... 7 more