Or it could be just different versions of com.sun.xml.bind:jaxb-core
and com.sun.xml.bind:jaxb-impl
. Ensure they are the same across your dependency:tree
.
I had -core
v.2.2.11 and -impl
v.2.2.6 in my project which led to the same exception. After setting both versions to 2.2.11 via dependencyManagement
section everything became fine.