Embedding webapp into project with embedded process engine



I have been working on a project with embedded Camunda engine. I would like to add the possiblity to use camunda webapp for its cockpit and admin functionality. I was hoping to include camunda-webapp-webjar for that. But I could not find out how to use it and I am starting to think is not the right way to go. I would like to have the webapp as a module in ear which contains other modules out of which the application composes. I am running this application on Glassfish which is fine for the embedded engine. Is it going to be fine even for the web app?

Please could you give me an advice of how to properly solve this problem?

Thank you


Hi @Adam_Klima,

as I understand your question, you would like to package your application with an embedded engine and a cockpit/tasklist.

You can use the standalone-webapp as a starting point and use maven overlay to add your processes/java classes to the project. See https://github.com/berndruecker/camunda-standalone-webapp-reconfigured for more details.

Hope this helps, Ingo


Hello @Ingo_Richtsmeier,

thank you for your answer, which helped me to get into it. At the end I was able to achieve my goal with the webjar after all. I had to change camunda-webapp-webjar structure a bit (which I already found as a issue in JIRA) so I created my first camunda pull request :grinning: (hope it goes well). For the webapp to be aware of my embedded process engine I had to add \WEB-INF\classes\META-INF\services\org.camunda.bpm.engine.rest.spi.ProcessEngineProvider with a value org.camunda.bpm.engine.rest.impl.application.ContainerManagedProcessEngineProvider and proper web.xml which I mostly copied from original webapps web.xml and only made a small change.

With this setup I am able to use my embedded process engine both in my custom JSF based app and using Camunda webapp at the same time.

Hope it will be helpful for others.