分享

关于dubbo服务的xml配置文件报错解决方法

 瀚海璨夜 2016-08-17

在配置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./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.xsd文件


windows->preferrence->xml->xmlcatalog 

add->catalog entry  ->file system 选择刚刚下载的文件路径

修改key值和配置文件的http://code./schema/dubbo/dubbo.xsd 相同

保存。。在xml文件右键validate  ok解决了。

 
 


PS:那个xsd文件就在你下载的dubbo.jar里面,你把它解压了,仔细找找,就会发现的,祝成功!!!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多