开发者社区> 问答> 正文

求惑,在配置Dubbo的provider时候出错~~:报错

<?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:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"

default-lazy-init="false" >

是这么配置头部的信息的。

然后启动的时候提示 org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 48; schema_reference.4: 无法读取方案文档 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 <xsd:schema>。


但是我把jar包里面的xsd文件添加到本地之后,还是会出这个错。 求解惑。。不知道是哪里搞错了

展开
收起
kun坤 2020-06-07 20:50:29 511 0
1 条回答
写回答
取消 提交回答
  • 阿里的这个域名地址好像停止服务了吧


    ######回复 @Leaybc : OK######是的、、后来发现是jar包没有导入。。。
    2020-06-07 20:50:34
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Dubbo开源现状与2.7规划 立即下载
Dubbo分布式服务治理实战 立即下载
《Dubbo 3.0 前瞻》 立即下载