Java Mailing List Archive

http://www.java2.5341.com/

Home » axis-user.ws »

Axis2 & Rampart1.4, Encounter org.apache.axis2.AxisFault: Error in
extracting message properties

aldray

2010-02-19

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

I am currently having some issue with Rampart on Axis2. I am trying to
configure the Rampart for only 1 way request security header, this means
that the response back from the Server to the Client does not contain the
SOAP security header.

What i did is instead of having both InflowSecurity and OutflowSecurity at
the Server and Client, i did this
Client - remain OutflowSecurity, remove InflowSecurity.
Server - remain InflowSecurity, remove OutflowSecurity.

This is the error that i encountered. Anyone knows how to resolve this?

========= ERROR ENCOUNTERED ==============

org.apache.axis2.AxisFault: Error in extracting message properties

    at
org.apache.rampart.handler.RampartSender.invoke (RampartSender.java:70)

    at org.apache.axis2.engine.Phase.invoke (Phase.java:317)

    at org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:264)

    at org.apache.axis2.engine.AxisEngine.send (AxisEngine.java:429)

    at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic (AbstractInOutMessageReceiver.java:43)

    at
org.apache.axis2.receivers.AbstractMessageReceiver.receive (AbstractMessageReceiver.java:100)

    at org.apache.axis2.engine.AxisEngine.receive (AxisEngine.java:176)

    at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest (HTTPTransportUtils.java:275)

    at
org.apache.axis2.transport.http.AxisServlet.doPost (AxisServlet.java:131)

    at javax.servlet.http.HttpServlet.service (HttpServlet.java:727)

    at javax.servlet.http.HttpServlet.service (HttpServlet.java:820)

    at
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)

    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)

    at
com.ncs.iframe.struts.filter.LocaleFilter.doFilter(LocaleFilter.java:98)

    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)

    at
org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360)

    at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

    at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

    at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)

    at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)

    at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)

    at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

    at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

    at org.mortbay.jetty.Server.handle (Server.java:324)

    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)

    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:730)

    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)

    at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Caused by: org.apache.rampart.RampartException: Error in extracting message
properties

    at
org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:322)

    at org.apache.rampart.MessageBuilder.build (MessageBuilder.java:61)

    at
org.apache.rampart.handler.RampartSender.invoke (RampartSender.java:64)

    ... 30 more

Caused by: org.apache.ws.security.WSSecurityException: Error in converting
SOAP Envelope to Document; nested exception is:

    java.lang.ClassCastException:
org.apache.axiom.om.impl.llom.OMElementImpl

    at
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope (Axis2Util.java:161)

    at
org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:158)

    ... 32 more

Caused by: java.lang.ClassCastException:
org.apache.axiom.om.impl.llom.OMElementImpl

    at
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope (Axis2Util.java:111)

    ... 33 more

========================================================
--
Sent from the Axis - User mailing list archive at Nabble.com.

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.