我需要将 Spring 与 CXF 3.0 版集成。 CXF 库位于类路径中。尝试访问 Web 服务时出现错误“无法为 XML 模式命名空间 [http://cxf.apache.org/jaxws] 找到 Spring NamespaceHandler”。这里可能有什么问题? Schema url 是否有机会更改?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
最佳答案
您是否将 cxf-rt-frontend-jaxws.jar 放入类路径中? 可以在那里找到离线 xml 架构。
关于spring - 无法找到 XML 模式命名空间的 Spring NamespaceHandler [http ://cxf. apache.org/jaxws],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22742262/