Troubleshooting "java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement" error

Problem

When you are using ZappySys ODBC JDBC Bridge Driver-based data source and executing a query, you may get this error:

JBR error: java.sql.SQLException: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement at com.infor.idl.jdbc.Statement.executeQuery(Statement.java:175) at com.infor.idl.jdbc.TranspilerDatabaseMetadata.executeStoredQuery(TranspilerDatabaseMetadata.java:143) at com.infor.idl.jdbc.TranspilerDatabaseMetadata.getTables(TranspilerDatabaseMetadata.java:105) at ClientHandler.getTableNames(ClientHandler.java:354) at
<…>

Possible Cause

This could be happening because your current Java version does not include JAXB library. JAXB library support was removed from Java 9 and above versions.

Solution

The simplest solution would be to install and use JRE 8 builds that include JAXB library within, e.g.:

If your environment requires a higher version of Java, you can download the JAXB library separately. Download the JAXB module from the Maven Repository. Then, specify the path to this module in your ODBC data source:

Contact Us

If you encounter any challenges or have specific use cases, please contact our support team via chat or ticket.