读书人

记录一个错误

发布时间: 2012-10-30 16:13:36 作者: rapoo

记录一个异常

org.apache.axis2.AxisFault: Must Understand check failed for header
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security?

I searched Rampart sources to see where SecurityInHandler is.

It was in META-INF/module.xml of rampart-1.5.1.mar, but only in <InFlow> section.

I copied it to <InFaultFlow> and it works! Now my <InFaultFlow> section looks like:

<InFaultFlow>?? ? <handler name="PolicyBasedSecurityInHandler" class="org.apache.rampart.handler.RampartReceiver">?? ? ? ? <order phase="Security" phaseFirst="true"/>?? ? </handler>?? ? <handler name="SecurityInHandler" class="org.apache.rampart.handler.WSDoAllReceiver">?? ? ? ? <order phase="Security"/>?? ? </handler>?? ? <handler name="PostDispatchVerificationHandler" class="org.apache.rampart.handler.PostDispatchVerificationHandler">?? ? ? ? <order phase="Dispatch" phaseLast="true"/>?? ? </handler>?</InFaultFlow> ?

读书人网 >编程

热点推荐