Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 60940 invoked from network); 29 Apr 2008 21:12:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 21:12:48 -0000 Received: (qmail 83967 invoked by uid 500); 29 Apr 2008 21:12:50 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 83956 invoked by uid 500); 29 Apr 2008 21:12:50 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 83941 invoked by uid 99); 29 Apr 2008 21:12:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 14:12:50 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 21:12:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F05BD234C10C for ; Tue, 29 Apr 2008 14:08:55 -0700 (PDT) Message-ID: <1981126.1209503335983.JavaMail.jira@brutus> Date: Tue, 29 Apr 2008 14:08:55 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-1553) TunedDocumentLoader fails to resolve xsi prefix properly when not using WSTX. In-Reply-To: <151206.1209397195607.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.