[Solved] Java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

1. Error code

Error creating bean with name 'entityManagerFactory' defined in class path resource 
Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

2. Cause resolution

JAXB API is considered as Java EE API, so it is no longer included in the default classpath of Java se 9. In Java, 11 they are completely removed from the JDK.

<!--maven import-->

Similar Posts: