Try
JAXBContext.newInstance(YourType.class).createUnmarshaller()
.unmarshal(
// this avoids the need of XmlRootElement, too :-)
XmlParserFactory.saxNamespaceAwareSourceOf(message),
YourType.class
)