My theory about dropping the war file into the deployment directory have also failed. The stack trace from the initial deployment and the attempted redeployment follows. The process is used is as follows:
-
Downloaded Camunda 7.5.3-ee/WildFly 10.0.0 bundle from Camunda site to my Windows 7 Professional 64 Bit workstation (Java 1.8)
-
Unzipped the distribution
-
Modified the management and public bindings to 0.0.0.0 and created a WildFly admin user
-
Started Camunda using the start-camunda script
-
Built the “loan-approval” process in Eclipse Mars with the Camunda Modeler Plugin installed.
-
Copied the .war file to the WildFly “deployments” directory. WildFly detected the deployment. The process showed up in the Camunda Cockpit.
-
Started an instance of the loan-approval process
-
Incremented the version in Maven and changed the label on the user task of the process to provide a clear “marker” of the different version. No other changes were made.
-
Built the process, which produces a war file with a different filename
-
Copied the war file to the deployments directory of WildFly. WildFly detects this and attempts to deployment the process. The deployment fails within WildFly as shown below.
-
Checked Camunda Cockpit and we see that there is a second version present.
-
Attempted to start another instance of the process, but nothing happens. The dialog window just sits there forever until you close it.
The only way to make this process usable is to completely remove it and any references to it within Camunda, and even that may not work.
STACK TRACE:
2016-10-21 10:15:23,062 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of “loan-approval-0.1.5-SNAPSHOT.war” (runtime-name: “loan-approval-0.1.5-SNAPSHOT.war”)
2016-10-21 10:15:23,087 INFO [org.camunda.bpm.container.impl.jboss.deployment.processor.ProcessApplicationProcessor] (MSC service thread 1-1) Detected user-provided @ProcessApplication component with name ‘org.camunda.bpm.getstarted.loanapproval.LoanApprovalApplication’.
2016-10-21 10:15:23,161 INFO [org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService] (ServerService Thread Pool – 74) Deployment summary for process archive ‘loan-approval’ of process application ‘Loan Approval App’:
loan-approval.png
loan-approval.bpmn
2016-10-21 10:15:23,162 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool – 75) WFLYUT0021: Registered web context: /loan-approval-0.1.5-SNAPSHOT
2016-10-21 10:15:23,180 INFO [org.camunda.bpm.application] (ServerService Thread Pool – 74) ENGINE-07021 ProcessApplication ‘Loan Approval App’ registered for DB deployments [ce332476-9798-11e6-b7e0-7a1120524153]. Will execute process definitions
approve-loan[version: 1, id: approve-loan:1:ce354759-9798-11e6-b7e0-7a1120524153]
Deployment does not provide any case definitions.
2016-10-21 10:15:23,233 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed “loan-approval-0.1.5-SNAPSHOT.war” (runtime-name : “loan-approval-0.1.5-SNAPSHOT.war”)
2016-10-21 10:15:54,990 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-52) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.camunda.bpm.tasklist.impl.web.TasklistApplication
2016-10-21 10:15:54,991 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-52) RESTEASY002205: Adding provider class com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider from Application class org.camunda.bpm.tasklist.impl.web.TasklistApplication
2016-10-21 10:15:54,991 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-52) RESTEASY002205: Adding provider class org.camunda.bpm.engine.rest.exception.RestExceptionHandler from Application class org.camunda.bpm.tasklist.impl.web.TasklistApplication
2016-10-21 10:15:54,992 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-52) RESTEASY002200: Adding class resource org.camunda.bpm.tasklist.impl.plugin.resources.TasklistPluginsRootResource from Application class org.camunda.bpm.tasklist.impl.web.TasklistApplication
2016-10-21 10:15:54,992 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-52) RESTEASY002205: Adding provider class org.camunda.bpm.engine.rest.mapper.JacksonConfigurator from Application class org.camunda.bpm.tasklist.impl.web.TasklistApplication
2016-10-21 10:15:54,992 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-52) RESTEASY002205: Adding provider class org.camunda.bpm.engine.rest.exception.ExceptionHandler from Application class org.camunda.bpm.tasklist.impl.web.TasklistApplication
2016-10-21 10:18:03,470 INFO [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0001: Content added at location C:\camunda-bpm-ee-wildfly10-7.5.3-ee_3\server\wildfly-10.0.0.Final\standalone\data\content\7e\879ebadf391416a108f9525f4f55c114759928\content
2016-10-21 10:18:03,472 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of “loan-approval-0.1.6-SNAPSHOT.war” (runtime-name: “loan-approval-0.1.6-SNAPSHOT.war”)
2016-10-21 10:18:03,497 INFO [org.camunda.bpm.container.impl.jboss.deployment.processor.ProcessApplicationProcessor] (MSC service thread 1-3) Detected user-provided @ProcessApplication component with name ‘org.camunda.bpm.getstarted.loanapproval.LoanApprovalApplication’.
2016-10-21 10:18:03,559 INFO [org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService] (ServerService Thread Pool – 79) Deployment summary for process archive ‘loan-approval’ of process application ‘Loan Approval App’:
loan-approval.png
loan-approval.bpmn
2016-10-21 10:18:03,559 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool – 80) WFLYUT0021: Registered web context: /loan-approval-0.1.6-SNAPSHOT
2016-10-21 10:18:03,571 INFO [org.camunda.bpm.application] (ServerService Thread Pool – 79) ENGINE-07021 ProcessApplication ‘Loan Approval App’ registered for DB deployments [ce332476-9798-11e6-b7e0-7a1120524153, 2dcda145-9799-11e6-b7e0-7a1120524153]. Will execute process definitions
approve-loan[version: 1, id: approve-loan:1:ce354759-9798-11e6-b7e0-7a1120524153]
approve-loan[version: 2, id: approve-loan:2:2dceb2b8-9799-11e6-b7e0-7a1120524153]
Deployment does not provide any case definitions.
2016-10-21 10:18:03,579 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.camunda.bpm.platform.process-application-module.“deployment.loan-approval-0.1.6-SNAPSHOT.war:main”.START: org.jboss.msc.service.StartException in service org.camunda.bpm.platform.process-application-module.“deployment.loan-approval-0.1.6-SNAPSHOT.war:main”.START: org.jboss.msc.service.DuplicateServiceException: Service org.camunda.bpm.platform.process-application.“Loan Approval App” is already registered
at org.camunda.bpm.container.impl.jboss.service.ProcessApplicationStartService.start(ProcessApplicationStartService.java:162)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
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)
Caused by: org.jboss.msc.service.DuplicateServiceException: Service org.camunda.bpm.platform.process-application.“Loan Approval App” is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158)
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235)
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:768)
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317)
at org.camunda.bpm.container.impl.jboss.service.ProcessApplicationStartService.start(ProcessApplicationStartService.java:156)
… 5 more
2016-10-21 10:18:03,581 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation (“deploy”) failed - address: ([(“deployment” => “loan-approval-0.1.6-SNAPSHOT.war”)]) - failure description: {“WFLYCTL0080: Failed services” => {“org.camunda.bpm.platform.process-application-module.“deployment.loan-approval-0.1.6-SNAPSHOT.war:main”.START” => “org.jboss.msc.service.StartException in service org.camunda.bpm.platform.process-application-module.“deployment.loan-approval-0.1.6-SNAPSHOT.war:main”.START: org.jboss.msc.service.DuplicateServiceException: Service org.camunda.bpm.platform.process-application.“Loan Approval App” is already registered
Caused by: org.jboss.msc.service.DuplicateServiceException: Service org.camunda.bpm.platform.process-application.“Loan Approval App” is already registered”}}
2016-10-21 10:18:03,603 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed “loan-approval-0.1.6-SNAPSHOT.war” (runtime-name : “loan-approval-0.1.6-SNAPSHOT.war”)
2016-10-21 10:18:03,603 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service org.camunda.bpm.platform.process-application-module.“deployment.loan-approval-0.1.6-SNAPSHOT.war:main”.START: org.jboss.msc.service.StartException in service org.camunda.bpm.platform.process-application-module.“deployment.loan-approval-0.1.6-SNAPSHOT.war:main”.START: org.jboss.msc.service.DuplicateServiceException: Service org.camunda.bpm.platform.process-application.“Loan Approval App” is already registered