ClassCastException: JAXB

A particular Java application I co-developed leverages both SOAP/WSDL and REST web services. We use maven to manage the build process of this application which has been in production for a few years now. It's been around long enough to have moved from Java 5 to Java 6 and now Java 7 (with limited testing using Java 8). We have also had the experience of initially including JAXB jar files with our application and dealing with the "endorsed" directory because JAXB versions were a bit of a moving target for a while. Now that JAXB is neatly included with Java as it should be so we no longer include it. I thought all of this was behind us (and unfortunately somewhat forgotten) until recently when we added Jersey 1.17 to the application to call some newer REST services. When trying to connect to the server, my stack trace included this: Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bin...