Impossible to deploy my workflow camunda from eclipse

Hi evertyone,

I’m a new for camunda developpemen, I have an application (workflow) developped by others people ,
I have the source code and i want to debug the source code with my Eclipse .
The probleme i can’t deployer my war from eclipse i have this error

please help me

juin 25, 2019 11:12:49 AM org.camunda.commons.logging.BaseLogger logInfo
INFOS: ENGINE-08024 Found processes.xml file at file:/home/admindjin/Documents2/camunda-bpm-tomcat-7.8.0.0/server/apache-tomcat-8.0.47/webapps/djin-wkf-lad-workflow/WEB-INF/classes/META-INF/processes.xml
juin 25, 2019 11:12:49 AM org.camunda.commons.logging.BaseLogger logInfo
INFOS: ENGINE-08023 Deployment summary for process archive 'wkf-lad': 

        djin-wkf-lad.png
        djin-wkf-lad.bpmn
        unitMassive.dmn
        djin-wkf-lad-vc-processing.bpmn
        djin-wkf-lad-vc-processing.png

juin 25, 2019 11:12:49 AM org.camunda.commons.logging.BaseLogger logInfo
INFOS: ENGINE-07021 ProcessApplication 'processApplication_wkf-lad' registered for DB deployments [3da8d993-9729-11e9-a5a9-02428349bb2b]. Will execute process definitions 

        djin-wkf-lad-vc-processing[version: 1, id: 3dc673bc-9729-11e9-a5a9-02428349bb2b]
        djin-wkf-lad[version: 1, id: djin-wkf-lad:1:3dc5fe89-9729-11e9-a5a9-02428349bb2b]
Deployment does not provide any case definitions.
11:12:49.349 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failed
java.lang.RuntimeException: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application processApplication_wkf-lad' => 'Start Process Application Service': Cannot register service org.camunda.bpm.platform.job-executor.process-application:type=processApplication_wkf-lad with MBeans Container, service with same name already registered.
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:99)
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:48)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1129)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1871)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application processApplication_wkf-lad' => 'Start Process Application Service': Cannot register service org.camunda.bpm.platform.job-executor.process-application:type=processApplication_wkf-lad with MBeans Container, service with same name already registered.
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:312)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:132)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:156)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:212)
	at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:95)
	at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:59)
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.start(SpringProcessApplication.java:104)
	at org.camunda.bpm.engine.spring.application.SpringServletProcessApplication.start(SpringServletProcessApplication.java:46)
	at org.camunda.bpm.engine.spring.application.SpringServletProcessApplication.afterPropertiesSet(SpringServletProcessApplication.java:52)
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:90)
	... 23 common frames omitted
Caused by: org.camunda.bpm.engine.ProcessEngineException: Cannot register service org.camunda.bpm.platform.job-executor.process-application:type=processApplication_wkf-lad with MBeans Container, service with same name already registered.
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:68)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:59)
	at org.camunda.bpm.container.impl.deployment.StartProcessApplicationServiceStep.performOperationStep(StartProcessApplicationServiceStep.java:67)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
	... 31 common frames omitted
juin 25, 2019 11:12:49 AM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
java.lang.RuntimeException: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application processApplication_wkf-lad' => 'Start Process Application Service': Cannot register service org.camunda.bpm.platform.job-executor.process-application:type=processApplication_wkf-lad with MBeans Container, service with same name already registered.
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:99)
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:48)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1129)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1871)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application processApplication_wkf-lad' => 'Start Process Application Service': Cannot register service org.camunda.bpm.platform.job-executor.process-application:type=processApplication_wkf-lad with MBeans Container, service with same name already registered.
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:312)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:132)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:156)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:212)
	at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:95)
	at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:59)
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.start(SpringProcessApplication.java:104)
	at org.camunda.bpm.engine.spring.application.SpringServletProcessApplication.start(SpringServletProcessApplication.java:46)
	at org.camunda.bpm.engine.spring.application.SpringServletProcessApplication.afterPropertiesSet(SpringServletProcessApplication.java:52)
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:90)
	... 23 more
Caused by: org.camunda.bpm.engine.ProcessEngineException: Cannot register service org.camunda.bpm.platform.job-executor.process-application:type=processApplication_wkf-lad with MBeans Container, service with same name already registered.
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:68)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:59)
	at org.camunda.bpm.container.impl.deployment.StartProcessApplicationServiceStep.performOperationStep(StartProcessApplicationServiceStep.java:67)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
	... 31 more

juin 25, 2019 11:12:49 AM org.apache.catalina.core.StandardContext startInternal
GRAVE: One or more listeners failed to start. Full details will be found in the appropriate container log file

Hi @adel,

First, are you using the Camunda Spring Boot Starter or the Apache Tomcat distribution? Please provide some additional info about your setup and deployment process.

Second, I noticed that you’re using a Process Application, and it seems like you’re using a processes.xml file. Can you provide it’s contents?

Best,
Nikola

1 Like

Hi Nikola,

Thank you for your response, I use camunda.bpm , I use camunda 7.8.0 version thant contain tomcat version 8.0.47
there is my tow files (processes.xml and applicationContext.xml)

From my eclipse when i generate the war application and i deploy it directement in my server it work fine, But when i add it from my eclipse (because i want to debug my code) I have the problème with register service.
It seems my eclipse try to deploy the service twice .

processes.xml (435 Bytes)

applicationContext file applicationContext.xml (1.7 KB)

The main pom.xml file pom.xml (16.8 KB)

The pom.xml of the webapp part (workflow part) pom.xml (9.4 KB)

And this the ecran capture of my application

Thank you very much for your help .

Adel

Hi @adel,

The applicationContext.xml and processes.xml files seem fine. However, I noticed that in your main pom.xml, you specify camunda.version 7.7.0, which is not the version you mention above. Additionally, in the pom.xml of the webapp part, you have specified version 7.1.0-Final of camunda-webapp-tomcat.

I would recommend that you first bring all of your Camunda dependencies to the correct versions. If you wish to work with Camunda 7.8.0, then, all the Camunda dependencies should be on that version.

Does the problem persist after adjusting the versions?

Best,
Nikola

PS
Please try to properly format your posts. You can use Markdown to format your text, especially code, logs and stack traces, which you can wrap like this: ``` code_here ```
This will improve the readability of your post.