ARTIFACTORY: How to Resolve the Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter Error When Upgrading to Artifactory 7.x

ARTIFACTORY: How to Resolve the Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter Error When Upgrading to Artifactory 7.x

AuthorFullName__c
Muhammed Kashif
articleNumber
000004790
ft:sourceType
Salesforce
FirstPublishedDate
2020-04-06T10:01:38Z
lastModifiedDate
2024-03-10T07:47:57Z
VersionNumber
6

Relevant versions: This information pertains to Artifactory version 7.x
 

Artifactory 7.x is compatible with Java 11 (and the JDK comes as part of your application bundle). When Artifactory starts, the JDBC driver will be copied from its $JFROG_HOME/artifactory/var/bootstrap/artifactory/tomcat/lib folder location to the $JFROG_HOME/artifactory/app/artifactory/tomcat/lib folder location.

Whenever you upgrade Artifactory to version 7.x, the following error may be encountered and Artifactory will not start:

Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

This means that the JDBC driver for the external database being used is incompatible with Java 11. To overcome this error, place a compatible JDBC driver in your $JFROG_HOME/artifactory/var/bootstrap/artifactory/tomcat/lib folder and restart Artifactory.

If this does not resolve the problem, do the following:

  • Navigate to the $JFROG_HOME/artifactory/app/artifactory/tomcat/lib folder as still the incompatible JDBC drivers still available

  • Remove all JDBC drivers

  • Restart Artifactory