Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 17187 invoked from network); 12 Jul 2007 15:51:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 15:51:27 -0000 Received: (qmail 58439 invoked by uid 500); 12 Jul 2007 15:51:29 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 58360 invoked by uid 500); 12 Jul 2007 15:51:28 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 58295 invoked by uid 99); 12 Jul 2007 15:51:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 08:51:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 08:51:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3AF92714221 for ; Thu, 12 Jul 2007 08:51:05 -0700 (PDT) Message-ID: <31472971.1184255465235.JavaMail.jira@brutus> Date: Thu, 12 Jul 2007 08:51:05 -0700 (PDT) From: "Derek Shaw (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Created: (CXF-784) Interceptor not setting the fault chain for HTTP Binding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Interceptor not setting the fault chain for HTTP Binding -------------------------------------------------------- Key: CXF-784 URL: https://issues.apache.org/jira/browse/CXF-784 Project: CXF Issue Type: Bug Components: JAX-WS Runtime Affects Versions: 2.0 Environment: WIndows XP. Tomcat 5.5, Java 5.0, CXF 2.0 Reporter: Derek Shaw Posting as requested by Dan Diephouse --- >From Dan -- It seems this is a bug with the HTTP Binding. Can you file a JIRA issue for this? I'll take a look and get a fix committed soon. In essence the problem is we aren't adding an interceptor which sets the fault chain. --------- I have an exception configured as. @WebFault(name = "PlayerNotFound") public class PlayerNotFoundFault extends Exception { } There is also a faultInfo class. @XmlRootElement(name = "ServiceException") public class ServiceException { } What I am finding is that when I call my service throught the XML interface (http:///services/xml/) I have configured ( using spring config provided below ), the XMLFault element is namespaced to http://cxf.apache.org/bindings/xformat, while the faultInfo element is namespaced to my default namespace. For XML this is ok... no errors. In the case of JSON/Jettison I get a namespace exception and nothing is returned in the response. The restful_http_binding example has the same issue. Now, if I add http://cxf.apache.org/bindings/xformat to my outbound JSON namespace then I do get the JSON response, but the content-type of the response is 'text/xml' and I cant seem -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.