我正在尝试 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
中的http
是conduit
元素所属的命名空间。
查看您发布的链接中的示例。您需要为您使用的元素指定命名空间和架构位置。
<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/