-
Notifications
You must be signed in to change notification settings - Fork 19
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
dbptk-app-2.10.1.jar: javax.xml.bind.JAXBException with Java 15 #531
Comments
You can add the additional jaxb-api jar into the classpath as you would do to add additional JBDC drivers. |
Thank you, the validation seems to work: java -cp "C:\KOST\Software_KOST\dbptk_Developer\dbptk-app-2.10.1.jar;C:\KOST\Software_KOST\dbptk_Developer\jaxb-api-2.3.1.jar" com.databasepreservation.Main validate -if C:\KOST\SIARD_TESTS\2022_07_11_SIARD_Test_MySQL\0_Testdatei\0_4-6_oe_Northwind_complex.siard |
This error is still present for dbptk-2.10.3.jar C:\Users\SH1U\Downloads>java "-Dfile.encoding=UTF-8" -cp "c:\users\sh1u\downloads\dbptk-app-2.10.3.jar;c:\users\sh1u\downloads\jaxb-api-2.4.0-b180830.0359.jar" com.databasepreservation.Main validate -import-file TestDB-with-slash.siard C:\Users\SH1U\Downloads>java -version |
Try this one: wget https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar
java --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED -cp dbptk-app-2.10.3.jar:jaxb-api-2.3.1.jar com.databasepreservation.Main validate -if test.siard We will try to improve Java 9+ compatibility in the next release. |
That worked! Thank you. On Windows the command line ended up as: |
After starting up the dbptk-app the following errors occurred:
Errors:
WARN could not get type for name javax.xml.bind.annotation.adapters.XmlAdapter from any class loader
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
This issue seems to origin from an incompatibility with Java 15.
I use OpenJDK Runtime Environment (build 15.0.2+10) from BellSoft.
According to the following link the jaxb-api jar has to be integrated in the application:
https://www.studytonight.com/post/solved-javalangnoclassdeffounderror-javaxxmlbindjaxbexception-in-java-11
Question
Will there be soon a release which will tackle this issue?
Which would be a feasible workaround where the dbptk-app
is able to run with Java 15?
The text was updated successfully, but these errors were encountered: