Hello!
I have Camunda running inside a Spring Boot application. When I launch it in IntelliJ Idea, it starts without problems.
However, when I build the same application using mvn clean compile package
and then start the resulting application, I get the following eror during startup:
errors:
* schema_reference.4: Failed to read schema document 'jar:file:/home/company/user/Development/Repositories/git/myproduct/target/myproduct-1.0-SNAPSHOT.jar!/BOOT-INF/lib/camunda-engine-7.12.0-ee.jar!/org/camunda/bpm/engine/impl/bpmn/parser/BPMN20.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.: JAR entry BOOT-INF/lib/camunda-engine-7.12.0-ee.jar!/org/camunda/bpm/engine/impl/bpmn/parser/BPMN20.xsd not found in /home/company/user/Development/Repositories/git/myproduct/target/myproduct-1.0-SNAPSHOT.jar | resource uploadToEc2.bpmn | line 2 | column 404
* cvc-elt.1: Cannot find the declaration of element 'bpmn:definitions'. | resource uploadToEc2.bpmn | line 2 | column 404
at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionDuringParsing(EngineUtilLogger.java:66) ~[camunda-engine-7.12.0-ee.jar!/:na]
at org.camunda.bpm.engine.impl.util.xml.Parse.throwExceptionForErrors(Parse.java:254) ~[camunda-engine-7.12.0-ee.jar!/:na]
at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:272) ~[camunda-engine-7.12.0-ee.jar!/:na]
at org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer.transformDefinitions(BpmnDeployer.java:105) ~[camunda-engine-7.12.0-ee.jar!/:na]
at org.camunda.bpm.engine.impl.AbstractDefinitionDeployer.transformResource(AbstractDefinitionDeployer.java:99) ~[camunda-engine-7.12.0-ee.jar!/:na]
at org.camunda.bpm.engine.impl.AbstractDefinitionDeployer.parseDefinitionResources(AbstractDefinitionDeployer.java:74) ~[camunda-engine-7.12.0-ee.jar!/:na]
at org.camunda.bpm.engine.impl.AbstractDefinitionDeployer.deploy(AbstractDefinitionDeployer.java:64) ~[camunda-engine-7.12.0-ee.jar!/:na]
If I open the respective JAR file in an archive application, I do see the jar:file:/home/company/user/Development/Repositories/git/myproduct/target/myproduct-1.0-SNAPSHOT.jar!/BOOT-INF/lib/camunda-engine-7.12.0-ee.jar!/org/camunda/bpm/engine/impl/bpmn/parser/BPMN20.xsd
file.
What could be the reason for this and how can I fix it?
Thanks
Dmitrii Pisarenko