0

我收到如下错误:

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 客户端抛出请求不包含安全标头/响应消息不包含 WS-Addressing 属性中找到完整的详细信息

谢谢

4

1 回答 1

0

我会为其他任何在谷歌搜索此错误并到达这里的人提供这个答案。

我在 JBoss Applicatoin 服务器上运行的 JSF2 maven Web 应用程序遇到了同样的问题,但我想这可能会发生在许多其他类型的 Web 应用程序上,这些应用程序使用 servlet 容器来实现基于令牌的安全性(即 SAML)。

只需确保您存储在配置文件中的任何密码(我的是在standalone.xml 中)以利用基于令牌的安全性没有更改或更新,否则会发生此错误。

于 2014-12-15T06:35:57.807 回答