Error javax.xml.validation.SchemaFactory in DmnEngine.parseDecision()

Hello,

I’m trying to use the DMN Engine with Grails 3. I’m taking error below even following the Camunda DOC tutorial, or even using, as a jar, this example: https://github.com/camunda/camunda-bpm-examples / tree / master / dmn-engine / dmn-engine-java-main-method.

java.util.ServiceConfigurationError: javax.xml.validation.SchemaFactory: jar:file:/home/antonio/.gradle/caches/modules-2/files-2.1/org.iso_relax.verifier.jaxp.validation/isorelax-jaxp-bridge/1.0/acfeb18770fd8dc3a297e11be5389378d0832827/isorelax-jaxp-bridge-1.0.jar!/META-INF/services/javax.xml.validation.SchemaFactory:1: Illegal provider-class name: http://relaxng.org/ns/structure/1.0=org.iso_relax.verifier.jaxp.validation.RELAXNGSchemaFactoryImpl

and consequently:

java.lang.NoClassDefFoundError: Could not initialize class org.camunda.bpm.model.dmn.Dmn

This error happens when trying to perform a parser from a DMN file, the same file used by the examples from the Camunda tutorials.

File file = new File(“directoryX/dish-decision.dmn11.xml”);
InputStream inputStream = new FileInputStream(file);
DmnDecision decision = dmnEngine.parseDecision(“decision”, inputStream);

Can someone help me?

Hi @Antonio_Marcos,

I never tried to integrate the DMN engine into Grails.

What is the easiest way to reproduce the issue?

Best regards,
Philipp