[ https://issues.apache.org/jira/browse/CXF-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1591. ------------------------------ Resolution: Fixed Fix Version/s: 2.2.2 Testcase added to CXF. Now working in the latest 2.2.2 snapshots. > 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 > Assignee: Daniel Kulp > Fix For: 2.2.2 > > > 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<SOAPMessage> > 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:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">< > soap:Header><MessageID > xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:93c > e3eaa-ddf7-456f-b4eb-9028c9ef0c7c</MessageID><To > xmlns="http://www.w3.org/2005/0 > 8/addressing">http://127.0.0.1:9090/p6ws/services/AuthenticationService</To><Rep > lyTo > xmlns="http://www.w3.org/2005/08/addressing"><Address>http://www.w3.org/200 > 5/08/addressing/anonymous</Address></ReplyTo><FaultTo > xmlns="http://www.w3.org/2 > 005/08/addressing"><Address>http://www.w3.org/2005/08/addressing/anonymous</Addr > ess></FaultTo><Action > xmlns="http://www.w3.org/2005/08/addressing">http://authen > tication.org/input</Action></soap:Header><soap:Body><Login > xmlns="http://ws.prim > avera.com/2007/p6/6.1/Authentication" > xmlns:ns2="http://schemas.primavera.com/20 > 07/p6/6.1/IntegrationFaultType"></Login></soap:Body></soap:Envelope> > -------------------------------------- > 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:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">< > soap:Body><soap:Fault><faultcode > xmlns:ns1="http://www.w3.org/2005/08/addressing > ">ns1:MessageAddressingHeaderRequired</faultcode><faultstring>A required > header > representing a Message Addressing Property is not > present</faultstring></soap:Fa > ult></soap:Body></soap:Envelope> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.