我收到错误,如下所示:
Jul 06, 2014 3:52:02 PM org.apache.cxf.ws.addressing.soap.MAPCodec restoreExchange WARNING: Response message does not contain WS-Addressing properties. Not correlating response.
Jul 06, 2014 3:52:02 PM org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor handleMessage
WARNING: Request does not contain Security header, but it's a fault.
Jul 06, 2014 3:52:03 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from context
Exception in thread "main" org.apache.cxf.binding.soap.SoapFault: The signature or decryption was invalid
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84)
我在https://github.com/sampleref/CXFSecurity有一些完整的例子。请提出一些意见,因为它对我很重要。还可以在CXF STS client throws Request does not contain Security header/Response message does not contain WS-Addressing properties
找到完整的详细信息由于
答案 0 :(得分:0)
我会把这个答案给谷歌这个错误的其他人来到这里。
我在JBoss Applicatoin服务器上运行的JSF2 maven Web应用程序遇到了同样的问题,但我想可能会出现许多其他类型的Web应用程序使用servlet容器进行基于令牌的安全性(即SAML)。
只需确保您在配置文件中存储的任何密码(我的在standalone.xml中)以利用基于令牌的安全性都不会更改或更新,否则会发生此错误。