Hello there!
I am trying to parse bpmn scheme in java 17 spring boot application. So, I decided to use camunda-modeler-api. It is my camunda-model-api dependency.
<dependency>
<groupId>org.camunda.bpm.model</groupId>
<artifactId>camunda-bpmn-model</artifactId>
<version>7.16.0</version>
</dependency>
And then I am trying to parse valid scheme (successfully deployed on camunda instance) next exception is thrown:
java.lang.NoClassDefFoundError: Could not initialize class org.camunda.bpm.model.bpmn.Bpmn
I had found, that problem could be with java version and jaxb-impl dependency, so i tried to use all the following dependencies one by one:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.5</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api-parent</artifactId>
<version>2.3.1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api-osgi</artifactId>
<version>2.2.7</version>
</dependency>
There is no way to set java varsion lower, because it is commercial project.
Please, help me
Thank you!