The error is misleading due to a JAXP bug in some factories. The solution is to ensure that you have your threads current context class loader set to the calling modules class loader and that that module have a service import on the com.sun jaxb impl module.