Camunda cockpit wont show the deployed BPM

Hi, I created a spring application and I added relevant camunda dependencies to the pom file. Then i started the application and i checked whether the app is working by calling this api from postman → http://localhost:8080/rest/engine

and it respond with this “name”: “default” which means that camunda is working fine.

Then i uploaded and deployed my BPM using this api via postman. → http://localhost:8080/rest/deployment/create

Then i started the deployed BPM using this api via the spring boot application . This is the URL i used to start the application. → http://localhost:8080/rest/process-definition/key/factoring-finex-CA/start

Then this api post call gives response status code of 200 which means that it started successfully.

My problem is when i go to the camunda cockpit using camunda stater script (i stopped the springboot application and started the camunda using start script), it wont show my deployment. Where can i see my deployment ?

Hi @dushan_chain1

just see in your process.xml and set the below property as false:

<property name="isDeleteUponUndeploy">false</property>

Hope its works, Mukul

where can i find this process.xml file?

in resource/META-INF

in my spring boot application i dont have a resource/META-INF folder.

I add this camunda for an existing spring boot application. For this i added below dependency to my pom and that only i did. I’m using camunda REST API.

<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>3.2.0</version>
</dependency>

Hi dushan_chain1,

This is again the same issue using different DB’s (One from Spring boot and other for Camunda Script).
If you need cockpit add camunda webapp dependency in spring Boot.

what should i add for this. Is there a specific version for that? i’m using camunda-bpm-spring-boot-starter-rest 3.2.0 version. What version of webapp should i use with this version ?

i added this dependency.

<dependency>
<groupId>org.camunda.bpm.webapp</groupId>
<artifactId>camunda-webapp</artifactId>
<version>7.9.0</version>
<scope>runtime</scope>
</dependency>

What should i do after this. Do i need to stop my web app and start the cmaunda using starter app and see the deployments is in the cockpit or is there any other way that i can see the cockpit?

Just Update your project using Maven Update and run again and check for the cockpit.

<dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
      <version>3.4.1</version>
    </dependency>

This dependency will run an Camunda Embedded engine with support of WebApps like cockpit, tasklist, etc. You don’t have to run the camunda server separately using script.

1 Like

If you’re using spring boot you can use this

  <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
      <version>3.4.1</version>
    </dependency>
2 Likes

okay, thanks a lot for the answer. I have another question,

  1. We cant use both “camunda-bpm-spring-boot-starter-webapp” and “camunda-bpm-spring-boot-starter-rest” together right ?
    Because when i tried to do that it gave me an error.

  2. I removed “camunda-bpm-spring-boot-starter-rest” and i kept only the “camunda-bpm-spring-boot-starter-webapp” dependency. Then my rest didnt work. (i tried ‘http://localhost:8080/rest/engine’ api and it gave me 404 error) That mean i need starter rest to call rest apis. Is that correct ?

If so, how can i see the deployed BPMs using my spring application in the camunda cockpit ?
The only reason i tried to add “camunda-bpm-spring-boot-starter-webapp” is to see deployed BPMs in my cockpit using spring boot application. This was the answer (adding camunda webapp as dependency) that suggested in the forum.

Hi @dushan_chain1,

I think you have some other error as both of them work together. Can you explain the error details.

this is the error that i’m getting when i add both of those dependencies.

This is the text of that image,


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.camunda.bpm.spring.boot.starter.webapp.CamundaBpmWebappInitializer.onStartup(CamundaBpmWebappInitializer.java:89)

The following method did not exist:

org.camunda.bpm.spring.boot.starter.property.WebappProperty.getCsrf()Lorg/camunda/bpm/spring/boot/starter/property/CsrfProperties;

The method’s class, org.camunda.bpm.spring.boot.starter.property.WebappProperty, is available from the following locations:

jar:file:/home/dushan/.m2/repository/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter/3.2.0/camunda-bpm-spring-boot-starter-3.2.0.jar!/org/camunda/bpm/spring/boot/starter/property/WebappProperty.class

It was loaded from the following location:

file:/home/dushan/.m2/repository/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter/3.2.0/camunda-bpm-spring-boot-starter-3.2.0.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.camunda.bpm.spring.boot.starter.property.WebappProperty

Hi @dushan_chain1,

we use both dependencies for our trainings in a single Spring Boot application and it works well.

But you have to configure a matching Camunda version, Spring Boot version and Camunda spring boot starter version. Please doublecheck the versions in your pom against this table: https://docs.camunda.org/manual/7.12/user-guide/spring-boot-integration/version-compatibility/

Hope this helps, Ingo

thank you for the reply @Ingo_Richtsmeier, My spring boot version is 2.1.9.RELEASE. Just like mentioned in that page, i added <version>3.3.1</version> of camunda-bpm-spring-boot-starter. But then i got this error saying “Missing artifact org.camunda.bpm.extension.springboot:camunda-bpm-spring-boot-starter:jar:3.3.1”

I even updated the pom.xml. But i still have that issue. What may be the problem ?