CXF 3.0.0引发org.apache.cxf.BusException:找不到名称空间http://schemas.xmlsoap.org/soap/http的DestinationFactory

时间:2014-07-15 11:11:28

标签: spring cxf saml ws-security ws-trust

使用CXF-STS我遇到了例外<<||2014-07-14 21:51:14,125||http-apr-8080-exec-8|DEBUG|org.apache.ws.security.processor.Signat‌​ureProcessor:428||||>> XML Signature verification has failed <<||2014-07-14 21:51:14,127||http-apr-8080-exec-8|DEBUG|org.apache.ws.security.processor.Signat‌​ureProcessor:431||||>> Signature Validation check: false

如发帖所述,CXF STS Usernametoken symmetric binding XML Signature verification has failed https://issues.apache.org/jira/browse/CXF-5679 https://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

由于

1 个答案:

答案 0 :(得分:0)

这是因为我的项目有CAMEL-CXF依赖项,其中包含嵌入的CXF 2.7。它可能与新的CXF 3.0.0版本产生了冲突。因此从类路径中删除它们解决了问题

由于