web服务-无法定位XML模式命名空间[http://cxf.apache.org/jaxws]的Spring Name



我需要将Spring与CXF 3.0版本集成。CXF库位于类路径中。当尝试访问web服务时,我得到错误"无法找到XML模式名称空间[http://cxf.apache.org/jaxws]的Spring NamespaceHandler"。这里有什么问题吗?有没有可能架构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-front -jaxws.jar放入类路径中?

最新更新