dubbo配置文件报错
在配置dubbo服务的过程中,经常会遇到虽然程序能够跑起来,但是配置文件一堆红叉,虽然不影响功能,但是确实很让人恶心。
报错信息如下:
Multiple annotations found at this line:
– cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘dubbo:application’.
– schema_reference.4: Failed to read schema document ‘http://code.alibabatech.com/schema/dubbo/dubbo.xsd’,
because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not
<xsd:schema>.
或者是
文件校验是严格的,但是没有发现<dubbo:reference的定义等等。
废话少说直接上解决方案:
下载一个dubbo.xsd文件windows->preferrence->xml->xmlcatalog
add->catalog entry ->file system 选择刚刚下载的文件路径
修改key值和配置文件的http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同
保存。。在xml文件右键validate ok解决了。
有的同学反映,那个xsd文件不好找,其实没有啦 ,就在你下载的dubbo.jar里面,你把它解压了,仔细找找,就会发现的,祝成功!!!
分享到:
相关推荐
一般dubbo的配置文件有报错的话,只要引用此约束文件就可以了.教程网上很多的
此项目是在SpringBoot中整合使用Dubbo,以达到分布式服务项目。Dubbo是Alibaba开源的分布式服务框架
解决dubbo启动报错,加载失败问题。
如果引入dubbo时候,dubbo的标签报错,是因为没有引入dubbo.xsd配置文件: 解决dubbo标签报错
dubbo标签报错 http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd 下载一个dubbo.xsd文件windows->preferrence->xml->xmlcatalog add->catalog entry ->file system ...
解决dubbo引用xsd报错,解决dubbo引用xsd报错,解决dubbo引用xsd报错,
解决springboot 中 dubbo配置的报错问题 dubbo XML Schema 文件
dubbo开发eclipse配置需要dubbo开发eclipse配置需要dubbo开发eclipse配置需要
dubbo找不到dubbo.xsd报错, cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document...
解决dubbo-admin在jdk1.8下启动报错问题,需要下载dubbo源码修改问题重新编译打包发布,这里已经和重新编译。
解决启动dubbo项目的时候出现,无法读取方案文档 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd',其实在你本地把dubbo.jar文件解压,然后在META-INF下边就有个dubbo.xsd,就是他
在Spring AOP代理过的对象上支持dubbo annotation配置事物失效问题-附件资源
构建dubbo项目的时候会遇到: 操作步骤: http://blog.csdn.net/gjldwz/article/details/50555922 Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no ...
该插件直接放于 jmeter ext/lib包下面即可,可以直接对dubbo接口发起测试,支持jmeter30以上版本,这个是鄙人写的一个专门用于jmeter-dubbo接口自动化测试的插件,原理是通过dubbo appconfig类,直接写客户端调用,...
构建dubbo项目的时候会遇到: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - ...
dubbo的快速启动demo,学习dubbo的入门程序,还有dubbo.xsd配置文件避免配置文件报错。赶快下载学习吧。