Schematron and Java17 #167
Mattonius5
started this conversation in
General
Replies: 1 comment 1 reply
-
|
It turned out if I use "com.helger.schematron:ph-schematron-xslt:8.0.0" then it seems to be working, However I am not sure if this one should be used as I cannot find any compatibility matrix for individual artifacts and respective java versions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Philip,
I wonder how to proceed with Java17. Up until now, I've been using Spring Boot 2.7.x with Java 8.
I want to upgrade system to run on Java 17 and Spring Boot 3.2.X.
In J8 we were using JavaX libraries to marshall/unmarshall XML documents / java classes.
Spring Boot 3.2 with Java 17 is no longer compatible with old javax.xml.bind libraries thus I refactored everything to jakarta.xml.bind, Marshalling and unmarshalling works without problem using Spring dependent versions of glassfish.jaxb/jakarta.xml.bind.
Problem comes when I want to validate xml file using schematron (ph-schematron:5.6.5). Under Java 8 everything worked like charm.
Whenever I try to run "SchematronResourceSCH.fromClassPath("schematron/schemRules.sch")" I recieve and error of "java.lang.ClassNotFoundException: javax.xml.bind.JAXBElement".
I suppose this comes from schematron being only java8 compatible? How am I able to validate against Schematron using java17?
Thank you for your help,
Matt
Beta Was this translation helpful? Give feedback.
All reactions