我在整合弹簧基础Web服务框架时遇到了问题。框架的独立实例工作得很好。但是在与web逻辑集成之后,它给出了以下异常。在解析响应的安全头时,我的假设是冲突的jar。
Could not validate request: Referenced security token could not be retrieved
(Reference "Issuer/Serial data element missing"); nested exception is:
org.apache.xml.security.exceptions.XMLSecurityException:
Cannot create a http://www.w3.org/2000/09/xmldsig#:X509IssuerSerial from a http://www.w3.org/2000/09/xmldsig#:X509IssuerSerial element; nested exception is org.apache.ws.security.WSSecurityException: Referenced security token could not be retrieved (Reference "Issuer/Serial data element missing");
最终导致
javax.xml.bind.UnmarshalException: unexpected element (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Fault").