解决dubbox-demo-provider.xml报错的问题:提示Failed to read schema document

来源:互联网 发布:闪电分期淘宝上怎么扫 编辑:程序博客网 时间:2024/05/16 23:01

dubbo-demo-provider导入eclipse后dubbox-demo-provider.xml报错详情::

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>.

解决方案::

1.解压dubbo-2.8.4.jar,在解压后的文件中找到dubbo.xsd文件,并copy至一个目录,如E:/dubbo

2.Eclipse::::         (1)windows->preferrence->xml->xmlcatalog 

                     (2)add->catalog entry  ->file system 




3. 右击dubbo-demo-provider.xml--->validate.

4.错误搞定

0 0
原创粉丝点击