Camunda Web applications not available when running in a jar

Hi,

I am using camunda-bpm-spring-boot-starter-webapp and camunda-bpm-spring-boot-starter-rest 3.0.0 with camunda engine 7.9.0 and spring boot 2.0.2.RELEASE, in my spring boot application.
When I run my application in a jar : java -jar my-app.jar, I don’t have access to Camunda web applications (Cockpit, Tasklist and Admin), but only to the welcome Dashboard.
I have this log :

16:42:56.547 [http-nio-8080-exec-7] WARN ExceptionHandler - org.camunda.bpm.engine.rest.exception.RestException: It was not able to load the following file 'a pp/plugin.js'. at org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginRootResource.getAsset(AbstractAppPluginRootResource.java:142)

In my browser, I have a wheel still running.

While running it with my IDE (Run as Java app) or with mvn spring-boot:run works.

Do you have any ideas ?

Thank you.

2 Likes

It appears that when I create a FAT jar via sprint boot maven plugin it works.
But when I generate a jar with dependencies in a separate folder (e.g: lib/) and so using classpath in the jar manifest, it doesn’t work.

1 Like

I faced same issue, any idea how to solve it?

Hi

any one got it resolved this error ?

I am also facing the same issue. Maven build, it is working fine but with dependencies for Gradle , it is giving me this error. Not able to find , what is missing here and why :frowning_face:

I faced the same issue, I think it is documented (but yet unresolved?) in https://jira.camunda.com/browse/CAM-10738
I’m still on Camunda 7.12, will soon move to 7.13 and check if it occurs there too.

In fact, with Camunda 7.13 I’m no longer able to reproduce this issue