如何解决 bundle is waiting for namespace handlers [http://schemas.xmlsoap.org/ws/2005/07/securitypolicy] 及相关问题?

How to solve bundle is waiting for namespace handlers [http://schemas.xmlsoap.org/ws/2005/07/securitypolicy] and related issues?

http://schemas.xmlsoap.org/ws/2005/07/securitypolicy? I need it to configure a ws policy in my CXF 组件的命名空间处理程序需要哪个包。

我的实现是 blueprint and I am running on RedHat Fuse 6.3。我知道错误 bundle is waiting for namespace handlers 通常意味着您错过了实例中的依赖项,但我在这里找不到缺少哪个包。

我安装了以下 cxf 功能:

JBossFuse:admin@s42http1> features:list | grep cxf
[uninstalled] [2.1.0.redhat-630343  ] switchyard-camel-cxf                          switchyard-2.1.0.redhat-630343
[uninstalled] [2.1.0.redhat-630343  ] switchyard-quickstart-camel-cxf-binding       switchyard-2.1.0.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-specs                                     cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-jaxb                                      cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-abdera                                    cxf-3.1.5.redhat-630343
[installed  ] [2.1.7                ] wss4j                                         cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-core                                      cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-commands                                  cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-wsdl                                      cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-ws-policy                                 cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-ws-addr                                   cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-ws-rm                                     cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-ws-mex                                    cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-ws-security                               cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-rt-security                               cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-rt-security-saml                          cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-http-client                               cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-http                                      cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-http-jetty                                cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-http-async                                cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-http-netty-client                         cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-http-netty-server                         cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-bindings-soap                             cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-jaxws                                     cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-jaxrs                                     cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-rs-security-xml                           cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-rs-security-sso-saml                      cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-rs-security-cors                          cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-rs-security-oauth                         cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-rs-security-jose                          cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-rs-security-oauth2                        cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-rs-description-swagger2                   cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-databinding-aegis                         cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-databinding-jibx                          cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-databinding-jaxb                          cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-databinding-xmlbeans                      cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-features-clustering                       cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-features-logging                          cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-features-throttling                       cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-features-metrics                          cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-bindings-corba                            cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-bindings-coloc                            cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-bindings-object                           cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-transports-local                          cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-transports-jms                            cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-transports-udp                            cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-transports-websocket-client               cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-transports-websocket-server               cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-javascript                                cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-frontend-javascript                       cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf-xjc-runtime                               cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-tools                                     cxf-3.1.5.redhat-630343
[installed  ] [3.1.5.redhat-630343  ] cxf                                           cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-sts                                       cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-wsn-api                                   cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-wsn                                       cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-ws-discovery-api                          cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-ws-discovery                              cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-bean-validation-core                      cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-bean-validation                           cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-management-web                            cxf-3.1.5.redhat-630343
[uninstalled] [3.1.5.redhat-630343  ] cxf-jaxrs-cdi                                 cxf-3.1.5.redhat-630343
[installed  ] [1.2.0.redhat-630343  ] fabric-cxf                                    fabric-1.2.0.redhat-630343
[uninstalled] [1.2.0.redhat-630343  ] fabric-cxf-registry                           fabric-1.2.0.redhat-630343
[installed  ] [2.17.0.redhat-630343 ] camel-cxf                                     camel-2.17.0.redhat-630343

也许有人可以给个提示,你如何找出缺失的依赖项。一个相关的问题是 .

我们通过更改 Web 服务策略的命名空间解决了这个问题。以前我们有以下命名空间

A:

<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
            xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

然后我们切换到

B:

<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" 
            xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">

A 正在使用 Web Service Policy 1.2 and B is using the Web Service Policy 1.5. The CXF Documentation 说,您应该使用 Web 服务策略 1.5。

Web Services Policy 1.5 - Attachment standard describes all possible alternatives.

看来是版本问题