Java version: JDK 11 Spring boot version: 2.0.2.RELEASE Camunda version: 7.9.0 Camunda spring boot version: 3.0.0
When i startup my camunda spring boot project, it encounters the following error:
Error: Could not find or load main class See.m2\repository\org\camunda\bpm\springboot\camunda-bpm-spring-boot-starter\3.0.0\camunda-bpm-spring-boot-starter-3.0.0.jar;C:\Users\Darren
Caused by: java.lang.ClassNotFoundException: See/m2\repository\org\camunda\bpm\springboot\camunda-bpm-spring-boot-starter\3/0/0\camunda-bpm-spring-boot-starter-3/0/0/jar;C:\Users\Darren
I have confirmed that camunda-bpm-spring-boot-starter-3.0.0.jar is inside my .m2 folder. Can help to look into this issue?
Attached here are the pom.xml for both camunda-bpm-service-v1 and customized-camunda-webapp-webjar-lib.
Thanks for pointing out on the version incompatibility. But the problem only happened when starting the camunda project through STS boot dashboard. If i use command prompt to start the spring boot project java -jar camunda-bpm-service-v1.jar, there is no issue in startup.
There is none. You can refer to the attached screenshot on both the error and also the command prompt. The command prompt case will start successfully.
Error: Could not find or load main class See.m2\repository\org\camunda\bpm\springboot\camunda-bpm-spring-boot-starter\3.0.0\camunda-bpm-spring-boot-starter-3.0.0.jar;C:\Users\Darren
Caused by: java.lang.ClassNotFoundException: See/m2\repository\org\camunda\bpm\springboot\camunda-bpm-spring-boot-starter\3/0/0\camunda-bpm-spring-boot-starter-3/0/0/jar;C:\Users\Darren
FYI, i also tested with spring boot version 2.1.1.RELEASE, camunda spring boot starter 3.2.0, camunda version to 7.10.0 together with adopt open JDK 11, the same error happened as below:
Error: Could not find or load main class See.m2\repository\org\camunda\bpm\springboot\camunda-bpm-spring-boot-starter\3.2.0\camunda-bpm-spring-boot-starter-3.2.0.jar;C:\Users\Darren
Caused by: java.lang.ClassNotFoundException: See/m2\repository\org\camunda\bpm\springboot\camunda-bpm-spring-boot-starter\3/2/0\camunda-bpm-spring-boot-starter-3/2/0/jar;C:\Users\Darren
pom.xml (3.5 KB)
Here is the pom file and the scope by default is compile. I have maven update in STS and perform clean and build. Any idea to troubleshoot?
I just wonder is it the issue caused by my pom has camunda-bpm-spring-boot-starter as compile dependencies but at the same time the pom file point to parent pom of spring-boot-starter-parent?