Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 32390 invoked from network); 28 Apr 2008 15:55:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2008 15:55:44 -0000 Received: (qmail 797 invoked by uid 500); 28 Apr 2008 15:55:46 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 787 invoked by uid 500); 28 Apr 2008 15:55:46 -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 776 invoked by uid 99); 28 Apr 2008 15:55:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 08:55:46 -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; Mon, 28 Apr 2008 15:54:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 98A00234C11B for ; Mon, 28 Apr 2008 08:51:55 -0700 (PDT) Message-ID: <1968707828.1209397915623.JavaMail.jira@brutus> Date: Mon, 28 Apr 2008 08:51:55 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Assigned: (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 reassigned CXF-1553: -------------------------------- Assignee: Daniel Kulp > 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 > > 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.