issue with running/deploying jbpm webApp in wildfly-8.1.0.Final

1,264 views
Skip to first unread message

Manoj Raturi

unread,
Feb 25, 2015, 2:36:18 AM2/25/15
to jbpm-...@googlegroups.com
Hi, 
I have downloaded various independent custom projects based on jbpm.
I imported these as maven based project.
I am able to compile and create .WAR file for these,
but none of them is deploying when deployed under jbpm "C:\jbpm-installer\wildfly-8.1.0.Final\standalone\deployments" 

env. info:

jbpm 6.1
wildfly-8.1.0.Final
jdk 1.7


e.g. following downloaded from github:

 jbpm6webexample

jbpmngwebexample



following error log is generated:


2015-02-23 17:14:21,994 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa
2015-02-23 17:14:23,070 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."jbpmwebexample.war".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpmwebexample.war".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment "jbpmwebexample.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_06]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_06]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for org.jbpm.persistence.jpa
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deployPersistenceUnitPhaseOne(PersistenceUnitServiceHandler.java:551)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:264)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:191)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:126)
at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."jbpmwebexample.war#org.jbpm.persistence.jpa".__FIRST_PHASE__ is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deployPersistenceUnitPhaseOne(PersistenceUnitServiceHandler.java:547)
... 10 more

2015-02-23 17:14:23,139 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jbpmwebexample.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpmwebexample.war\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpmwebexample.war\".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment \"jbpmwebexample.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for org.jbpm.persistence.jpa
    Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit.\"jbpmwebexample.war#org.jbpm.persistence.jpa\".__FIRST_PHASE__ is already registered"}}
2015-02-23 17:14:23,261 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jbpmwebexample.war" (runtime-name : "jbpmwebexample.war")
2015-02-23 17:14:23,265 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014776:    Newly corrected services:
      service jboss.naming.context.java.jdbc.jbpm-ds (no longer required)
      service jboss.persistenceunit."jbpm6web.war#org.jbpm.persistence.jpa".__FIRST_PHASE__ (no longer required)
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."jbpmwebexample.war".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpmwebexample.war".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment "jbpmwebexample.war"


Please help me to run it...

Regards,
Manoj

Abhijit Humbe

unread,
Feb 25, 2015, 4:31:24 AM2/25/15
to Manoj Raturi, jbpm-...@googlegroups.com
Hello,

the problem message is:


Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."jbpmwebexample.war#org.jbpm.persistence.jpa".__FIRST_PHASE__ is already registered registered

You already have one application deployed, which uses persistence unit org.jbpm.persistence.jpa. Try to run your application in container alone and make sure that you have there only one persistence.xml with one such persistence unit.



--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/94d61f95-52ed-4908-9d7a-b39c6cc543bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages