Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 72925 invoked from network); 14 Jul 2009 19:49:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 19:49:36 -0000 Received: (qmail 58212 invoked by uid 500); 14 Jul 2009 19:49:46 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 58195 invoked by uid 500); 14 Jul 2009 19:49: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 58185 invoked by uid 99); 14 Jul 2009 19:49:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 19:49:46 +0000 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, 14 Jul 2009 19:49:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D8D9C29A0011 for ; Tue, 14 Jul 2009 12:49:14 -0700 (PDT) Message-ID: <9771381.1247600954887.JavaMail.jira@brutus> Date: Tue, 14 Jul 2009 12:49:14 -0700 (PDT) From: "John Pfeifer IV (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2340) Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared ------------------------------------------------------------------------------------------------------------- Key: CXF-2340 URL: https://issues.apache.org/jira/browse/CXF-2340 Project: CXF Issue Type: Bug Affects Versions: 2.2.2 Reporter: John Pfeifer IV Please see the following thread from Nabble outlining the issue. I have sample code that can be used to test the scenario. http://www.nabble.com/Unmarshalling-Error%3A-UndeclaredPrefix%3A-Cannot-resolve-%27ns0%3AXxx%27-as-a-QName%3A-the-prefix-%27ns0%27-is-not-declared-to17918441.html#a24462568 Basically, when specifying an xsi:type for an element that extends and Abstract Type, CXF throws the following error [org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'ser:getSedans' as a QName: the prefix 'ser' is not declared.] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:396) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312) at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:607) ... 29 more Caused by: org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'ser:getSedans' as a QName: the prefix 'ser' is not declared. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.getAndCheckXsiType(XMLSchemaValidator.java:2435) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1922) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.