cxf整合spring 命名空间问题 (nested exception is org.xml.sax.SAXParseException)

来源:互联网 发布:java interface 解释 编辑:程序博客网 时间:2024/05/20 00:17

最近发现很多人和我一样遇到如下问题

CXF整合spring 报
     Caused by: org.xml.sax.SAXParseException; lineNumber: 21; columnNumber: 66; cvc-complex-type.2.4.c: 通配符的匹配很全面,
 但无法找到元素 'jaxws:endpoint' 的声明。


原因和解决办法:
      http://cxf.apache.org/schemas/jaxws.xsd   eclipse中无法访问


 方法:
      1:浏览器中输入:http://cxf.apache.org/schemas/jaxws.xsd 
       
      2:   另存为xsd文件到本地


2: eclipse  导入本地xsd 文件  Windows---》preference ---〉xml catalog ---- >add  ---->选择xsd 文件 ---〉OK


        

0 0
原创粉丝点击