Process not displayed in Cockpit after deploy WAR file to tomcat

Dear Everyone

Sorrry for my English because i’m Vietnamese.
I have a problem in deploy war file. I setup a Java Serlvet War:

Camunda BPM Process Application
A Process Application for Camunda BPM. [The project has been generated by the Maven archetype ‘camunda-archetype-servlet-war-7.9.2’]

My War file is delpoyed successfully with logs:

Blockquote
2-Mar-2022 18:11:36.189 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-07015 Detected @ProcessApplication class ‘org.example.CamundaBpmProcessApplication’
22-Mar-2022 18:11:36.191 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08024 Found processes.xml file at file:/Users/thangnguyenchien/Camunda/camunda-bpm-tomcat-7.16.0/server/apache-tomcat-9.0.52/webapps/BPMLast/WEB-INF/classes/META-INF/processes.xml
22-Mar-2022 18:11:36.204 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08023 Deployment summary for process archive ‘BPMLast’:

    process.bpmn

22-Mar-2022 18:11:36.296 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-07021 ProcessApplication ‘BPMLast’ registered for DB deployments [3785d46e-a9cd-11ec-9b16-d67c2fb6bfe6, d6b599c2-a9d0-11ec-b211-d67c2fb6bfe6]. Will execute process definitions

    BPMLast[version: 1, id: BPMLast:1:378ab670-a9cd-11ec-9b16-d67c2fb6bfe6]
    BPMLast[version: 2, id: BPMLast:2:d6c02114-a9d0-11ec-b211-d67c2fb6bfe6]

Deployment does not provide any case definitions.
22-Mar-2022 18:11:36.318 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
22-Mar-2022 18:11:36.322 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
22-Mar-2022 18:11:36.326 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
22-Mar-2022 18:11:36.327 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
22-Mar-2022 18:11:36.327 INFO [Catalina-utility-2] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08050 Process application BPMLast successfully deployed

Blockquote

But after that I do not see “BPMLast” in the Cockpit (at Process Defination pages, http://localhost:8080/camunda/app/cockpit/default/#/processes )

Could you help me. Thanks in advances.

Can you upload your model so that i can take a look at it?

Sure Niall,

My model is quite simple because I just want to know if it can works.

process.bpmn (2.2 KB)

So, your model looks good and the logs suggest you’re deployment was successful, so can you explain to me where you’re expecting the see the process and what is appearing instead?

Thanks Nail for your very quick response. I will try my best to explain:

  1. I implemented a JavaDelegate in Java Maven Project follow your video: Tutorial: Camunda Enterprise Edition for Java Developers (Video 2) - YouTube

  2. I use maven install to build a WAR file and deploy sucessfully.

  3. I wish to see BPMLast in the Process Definition screen like your video (at 18:13, I can see Simple Demo in list). But BPMLast is not there.

Please help me! Thanks a lot.

I see nothing here!!
image|690x162

Is there any particular reason you’ve picked this specific approach?
Generally, if you’re looking to just orchestrate Java Classes, it’s a lot easier to use camunda with spring boot. Id suggest maybe following this tutorial series.

Yeah. I almost watched all of your videos :smiley:
I know that I can use camunda with springboot and I have finished a sample project with spring boot.
But in fact, I have a shared Camunda Engine which is used by some applications (the business dept required that).
That’s why I need above implementation approach.

Do you have any github link which I can clone and try to deploy again.

Sadly, I’ve lost that exact code to time.
I’m very confused as to why you process is not appearing, it does seem like everything is correct.
Perhaps you can put your project on github and i’ll try to reproduce the error and fix it

Of course Niall, I put my code here: GitHub - thangnch/MiAI_Camunda_Sample: Demo of Camunda
It’s quite simple.
If you can deploy on your Camunda Engine, i will try to reinstall my Engine :slight_smile:
Thanks a lot!

Sorry Niall, I finnally found the reason.

I install Camunda 7.16.0 ( on Tomcat) on both Ubuntu 18 and MacOS.
Everything is fine on Ubuntu, BPMLast is displayed and run normaly.
But on MacOS it does not work.

2 Likes