Spring 请求不包含安全标头,但它';是错误CXF STS服务客户端错误

Spring 请求不包含安全标头,但它';是错误CXF STS服务客户端错误,spring,cxf,saml,ws-security,security-policy,Spring,Cxf,Saml,Ws Security,Security Policy,我得到的错误如下所示: 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.WS

我得到的错误如下所示:

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)
我有一些完整的例子,请建议一些输入,因为这对我很重要。有关详细信息,请访问


谢谢

我会把这个答案放在谷歌搜索到这个错误并到达这里的任何人身上

我在JBoss ApplicationIn服务器上运行的JSF2 maven web应用程序也有同样的问题,但我认为对于使用servlet容器实现基于令牌的安全性(即SAML)的许多其他类型的web应用程序,可能会出现这种情况

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