我需要将Spring与CXF 3.0版集成. CXF库位于类路径中.我在尝试访问Web服务时收到错误“无法找到用于XML架构命名空间的Spring NamespaceHandler [http://cxf.apache.org/jaxws]”.这可能是错的? 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架构.