I had the same problem like a month ago and the solution in my case was really easy, I don´t know if it may apply to you. I was using genexus, so the pom.xml or build.gradle solution was not for me, so I searched who was the responsible for generating and compiling the program, and it turned out that this guy didn´t have the jaxb-api-2.3.1.jar, so when he built it the reference was not there. I just gave him the .jar, he built it again and it worked out perfectly. Maybe it´s a little basic but check it out if you have it in the lib carpet.
I hope this works, cheers and merry christmas!!