java - 元素 "http"的前缀 "http:conduit"未绑定(bind) - 这是什么意思?

标签 java web-services ssl cxf applicationcontext

我正在尝试 configure SSL根据 this official Apache CXF guide 支持我基于 CXF 的客户端, 但 Eclipse 用红色下划线和非常简短的错误描述标记 http:conduit 标签:

  The prefix "http" for element "http:conduit" is not bound

我在网上搜索了有关此消息的含义以及如何修复它的更多线索,但我还没有找到任何可以解释我收到此错误的原因。

知道元素“http:conduit”的前缀“http”未绑定(bind)是什么意思吗?

绑定(bind)到什么?

为什么只有前缀“http”而不是“conduit”?

最佳答案

http:conduit中的httpconduit元素所属的命名空间。

查看您发布的链接中的示例。您需要为您使用的元素指定命名空间和架构位置。

<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:sec="http://cxf.apache.org/configuration/security"
  xmlns:http="http://cxf.apache.org/transports/http/configuration"
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  xsi:schemaLocation="
      http://cxf.apache.org/configuration/security
      http://cxf.apache.org/schemas/configuration/security.xsd
      http://cxf.apache.org/transports/http/configuration
      http://cxf.apache.org/schemas/configuration/http-conf.xsd
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

关于java - 元素 "http"的前缀 "http:conduit"未绑定(bind) - 这是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20794485/

相关文章:

java - 如何将json数组从laravel路由器传递到android studio中的android类

java - 从 Hashmap 填充 JList 并检索键

android - 如何在android中使用http post方法调用php webservice?

wcf - 为受 SSL 保护的 WSIT/Metro Web 服务和客户端设置身份验证

security - 尼菲 : how to make ListenHTTP work with SSL

java - SSL 握手异常

java - 在一个参数化类(junit)中创建多个参数集

java - 线程 "main"java.lang.NoClassDefFoundError : org/joda/time/ReadableInstant 中的异常

web-services - 微服务粒度: Per domain model or not?

Node.js 服务器 + SSL = ERR_CONNECTION_CLOSED