`
hugang357
  • 浏览: 181688 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

记录一个异常

阅读更多
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>  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics