Spring shared process engine getting started example does not deploy

Hi,

I am new to camunda BPM, I have downloaded wildfly 10 full distribution and tried to deploy the below camunda-spring shared process engine application.But i was not able to deploy it.
https://github.com/camunda/camunda-get-started-spring/archive/Bonus.zip

It throws the following error.

ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 94) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host."/loanapproval-spring-0.1.0-SNAPSHOT": org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host."/loanapproval-spring-0.1.0-SNAPSHOT": java.lang.RuntimeException: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.camunda.bpm.BpmPlatform] for bean with name ‘processEngineService’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.camunda.bpm.BpmPlatform from [Module “deployment.loanapproval-spring-0.1.0-SNAPSHOT.war:main” from Service Module Loader]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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: java.lang.RuntimeException: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.camunda.bpm.BpmPlatform] for bean with name ‘processEngineService’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.camunda.bpm.BpmPlatform from [Module “deployment.loanapproval-spring-0.1.0-SNAPSHOT.war:main” from Service Module Loader]
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:236)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
… 6 more

Appreciate the response.
Thank you.

Hi @mallagam,

SpringServletProcessApplication does not work on JBoss/Wildfly as stated here. Instead, create a custom subclass of ServletProcessApplication similar to

See the entire example for clarification.

Cheers,
Thorben

Hi Thorben,

Thanks for the response.

Example you shared works. WOW!

Thank you.
Cheers,
Mahessh Allagam.

1 Like