I am using smooks within Apache Camel Version 3.16
On my development machine, all works smoothly.
Smooks is reading an EDI-File and does successful convert it to an XML document.
When I build a jar (with Maven) which includes all necessary jar files and run that jar on my deployment machine, then I got the following error:
Error invoking @PostConstruct method 'postConstruct' on class 'org.smooks.cartridges.dfdl.parser.DfdlParser'
My Camel route (simplified)
from("file:{{dir.from.as2}}?preMove=.inprogress&move=.done&delay=1000")
.to("smooks://smooks-ORDERS-D01B-to-EDIXMLORDERS.xml")
Smooks Configuration file:
My Maven pom.xml (regarding smooks)
<dependency>
<groupId>org.smooks.cartridges</groupId>
<artifactId>smooks-camel-cartridge</artifactId>
<version>2.0.0-RC1</version>
</dependency>
<dependency>
<groupId>org.smooks.cartridges.edi</groupId>
<artifactId>smooks-edifact-cartridge</artifactId>
<version>2.0.0-RC1</version>
</dependency>
<dependency>
<groupId>org.smooks.cartridges.edi</groupId>
<artifactId>edifact-schemas</artifactId>
<classifier>d01b</classifier>
<version>2.0.0-RC1</version>
</dependency>
I saw some other post explaining that this is a problem with Scala version. I checked the content of my jar (produced by Mavern) and saw that my Scala versions are up to date, same as on my development machine.
Any idea what I could try?
regards
Reto