The following code worked fine in Java 7
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; String
Both Bernard and Blaise's answers were very helpful. In my case, since I am using JDK 7, the solution was to exclude the xerces subdependency that was being included by one of my dependencies:
org.apache.axis axis 1.4.1-SNAPSHOT xerces xercesImpl xerces xmlParserAPIs