Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 10555 invoked from network); 16 May 2008 20:06:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 20:06:31 -0000 Received: (qmail 44413 invoked by uid 500); 16 May 2008 20:06:32 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 44397 invoked by uid 500); 16 May 2008 20:06:32 -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 44386 invoked by uid 99); 16 May 2008 20:06:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 13:06:32 -0700 X-ASF-Spam-Status: No, hits=-1997.6 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,URIBL_RHS_DOB,WEIRD_PORT,WHOIS_NETSOLPR 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; Fri, 16 May 2008 20:05:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5CAA234C11F for ; Fri, 16 May 2008 13:05:55 -0700 (PDT) Message-ID: <246073406.1210968355743.JavaMail.jira@brutus> Date: Fri, 16 May 2008 13:05:55 -0700 (PDT) From: "bharath reddy (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-1591) WS Addressing Does Not Work with JAX-WS Provider Based Implementations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org WS Addressing Does Not Work with JAX-WS Provider Based Implementations ---------------------------------------------------------------------- Key: CXF-1591 URL: https://issues.apache.org/jira/browse/CXF-1591 Project: CXF Issue Type: Bug Components: WS-* Components Affects Versions: 2.1 Environment: Windows XP,Apache Tomcat 5.5.25 Reporter: bharath reddy When we deploy our services on CXF using the provider based implementation.And by following the steps in the admin guide to enable the addressing feature i see that the addressing is enabled on the server ,but i do not see the addressing headers going back in the response.When we add the following annotations to our provider we see the exception below. @Addressing(enabled=true, required=true) public class AuthenticationProvider implements Provider I have also tried by using the action annotation on the invoke method,but the result is still the same. @Action( input="http://authentication.org/input", output="http://authentication.org/output") This is the Soap Request and Response Payload: < soap:Header>urn:uuid:93c e3eaa-ddf7-456f-b4eb-9028c9ef0c7chttp://127.0.0.1:9090/p6ws/services/AuthenticationService
http://www.w3.org/200 5/08/addressing/anonymous
http://www.w3.org/2005/08/addressing/anonymoushttp://authen tication.org/input -------------------------------------- May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs INFO: retrieving MAPs from context property javax.xml.ws.addressing.context.inbo und May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs INFO: WS-Addressing - failed to retrieve Message Addressing Properties from cont ext May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.soap.MAPCodec unmarshalMAPs INFO: Inbound WS-Addressing headers May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs INFO: retrieving MAPs from context property javax.xml.ws.addressing.context.inbo und May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from c ontext May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.MAPAggregator getMAPs INFO: MAPs retrieved from message null May 8, 2008 1:25:28 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: A required header representing a Message Addressing Property is not present at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java :374) at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregato r.java:158) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept orChain.java:221) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti ationObserver.java:78) at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDes tination.java:92) at org.apache.cxf.transport.servlet.ServletController.invokeDestination( ServletController.java:214) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletCont roller.java:151) at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCX FServlet.java:170) at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCX FServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:689) at java.lang.Thread.run(Thread.java:595) May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs INFO: retrieving MAPs from context property javax.xml.ws.addressing.context.inbo und May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from c ontext May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.MAPAggregator getMAPs INFO: MAPs retrieved from message null May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs INFO: retrieving MAPs from context property javax.xml.ws.addressing.context.outb ound May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from c ontext May 8, 2008 1:25:28 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs INFO: retrieving MAPs from context property javax.xml.ws.addressing.context.outb ound May 8, 2008 1:25:29 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from c ontext May 8, 2008 1:25:29 PM org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingC allback onClose INFO: Outbound Message --------------------------- Encoding: UTF-8 Headers: {} Messages: Payload: < soap:Body>ns1:MessageAddressingHeaderRequiredA required header representing a Message Addressing Property is not present -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.