If you put Xerces' jaxp_parser_impl.jar in the classpath, DomDocumentBuilderFactory.java.newDocumentBuilder() exits with a ParserConfigurationException. This seems to be because gnu.xml.dom uses a configuration interface that is incompatible with Xerces2.
Created attachment 13091 [details]
Selects an LS implementation that supports the parameters required rather than the first LS implementation.
Fixed with the addition of resource/META-INF/services/org.w3c.dom.DOMImplementationSourceList.