-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jakarta.xml.bind.JAXBException No Found Exception #234
Comments
One of the big changes between JPMML-Evaluator 1.5.X and 1.6.X is that the Java XML Bindings ( What's your target Java SE version? The Java XML Binding classes are included in Java SE 8. The Jakarta XML Bind classes are not native to the Java/JVM platform, and always have to be included manually. The recommended way is simply to include the This looks like a documentation bug to me, because the README.md file currently suggests that Java SE 8 users can keep using the |
Hello master, |
The README.md file for the 1.6.0 version gives bad advice for Java SE 8 users. You should be following the "Java SE 9 and newer" advice at all times. I will fix the documentation shortly. Will add a couple of more code examples highlighting some 1.6.X features. For example, the |
Following the switch from Java XML Binding to Jakarta XML Binding, the standalone 'org.jpmml:pmml-evaluator' dependeny lost the ability to parse PMML documents (including on Java 8); it needs to be accompanied by a specialized JAXB runtime dependency. The 'org.jpmml:pmml-evaluator-metro' dependency is the preferred substitution for project's internal needs (eg. unit testing), because it features the minimum number of transitive dependencies (API + implementation). See #234
The main 'pmml-model' module should import Jakarta XML Binding and Jackson annotations in order to prevent numerous Java compiler and Javadoc warnings in downstream projects. See jpmml/jpmml-evaluator#234
Hello master,
when i use java8 and project maven version of 1.6.0, I found the idea platform throwing a class no found exception, just like: jakarta.xml.bind.JAXBException/jakarta.xml.bind.Unmarshaller/jakarta.xml.bind.ValidationEventHandler.
Does these class(prefix startsWith jakarta) are relocated in the module? And how can i solve this problem?
Best wishes!
The text was updated successfully, but these errors were encountered: