I want to use Xerces, not WSTX. But if I remove WSTX from the CLASSPATH, the fallback mechanism at line 75 of TunedDocumentLoader fails. I believe WSTX defaults the "http://xml.org/sax/features/namespaces" property to true, whereas Xerces defaults it to false. As a result, you get a cryptic error:
NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces
The fix is to add this line:
After line 85 of org.apache.cxf.bus.spring.TunedDocumentLoader.
On a side note, what is the reason for the fallback mechanism at org.apache.cxf.bus.spring.TunedDocumentLoader.java:75? Why not just rely on the JAXP mechanism to find implementations?