[ https://issues.apache.org/jira/browse/CXF-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1553. ------------------------------ Resolution: Fixed Fix Version/s: 2.0.7 > TunedDocumentLoader fails to resolve xsi prefix properly when not using WSTX. > ----------------------------------------------------------------------------- > > Key: CXF-1553 > URL: https://issues.apache.org/jira/browse/CXF-1553 > Project: CXF > Issue Type: Bug > Components: Configuration > Affects Versions: 2.1 > Reporter: Chris McClelland > Assignee: Daniel Kulp > Fix For: 2.1.1, 2.0.7 > > Original Estimate: 0.17h > Remaining Estimate: 0.17h > > 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: > nsasaxParserFactory.setFeature("http://xml.org/sax/features/namespaces", > true); > 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? > - Chris -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.