使用CXF-STS时,我遇到了<<||2014-07-14 21:51:14,125||http-apr-8080-exec-8|DEBUG|org.apache.ws.security.processor.SignatureProcessor:428||||>> XML Signature verification has failed <<||2014-07-14 21:51:14,127||http-apr-8080-exec-8|DEBUG|org.apache.ws.security.processor.SignatureProcessor:431||||>> Signature Validation check: false
正如前面所讨论的,CXF STS Usernametoken对称绑定XML签名验证失败https://issues.apache.org/jira/browse/CXF-5679https://issues.apache.org/jira/browse/CXF-5679所以假设它在3.0.0版本中被修复了,我就开始使用它。现在在启动时,我面对的错误是
... 25 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
... 34 more
Caused by: org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/http.
at org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:122)
at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:88)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:72)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:160)
我无法弄清楚如何才能真正使用CXF STS示例。请提供一些很好的示例参考,在UsernameToken加密场景
中使用CXF STS。谢谢
这是因为我的项目有CAMEL-CXF依赖,其中包含嵌入的CXF 2.7。它可能与新的CXF 3.0.0版本产生了冲突。因此,从类路径中删除它们解决了这个问题
谢谢