Camunda springboot no class def found

Hello

I cloned the Setup a Spring Boot Project | docs.camunda.org project and try to run with java -jar loan-approval-spring-boot-0.0.1-SNAPSHOT.jar and I got java.lang.NoClassDefFoundError: javax/ws/rs/core/Application exception. I tried to exclude the Jersey jar but it did not help. I use Java 1.8.0.101.

I attached my modified pom as well.

Do you have any idea what can be the problem?

pom.xml (2.1 KB)

Thanks in advance: Gábor

Hi Gábor

I suppose, you have the wrong Spring-Boot-Starter-Version (2.0.4 instead of 2.0.2) -> see https://docs.camunda.org/manual/develop/user-guide/spring-boot-integration/version-compatibility/

If you look at https://github.com/camunda/camunda-bpm-spring-boot-starter, you’ll find all the links to the documentation and to working examples: https://github.com/camunda/camunda-bpm-examples/tree/master/spring-boot-starter.

Does this help you?

Kind regards
Björn

Thank you.