异常信息

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

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 :无法加载dubbo.xsd

异常.png

错误原因:

http://code.alibabatech.com/schema/dubbo/dubbo.xsd此页面已无法下载

解决办法:

  • dubbo-2.6.1.jar解压, 进入META-INF文件夹

    Dubbo :无法加载dubbo.xsd

    dubbo-2.6.1.png

     

  • 在eclipse中Window->Preferences->XML->XML Catalog,选中User Specified Entries,点击Add...

     

    Dubbo :无法加载dubbo.xsd

    XML.png

  • 点击File System...选择刚刚解压出来的dubbo.xsd文件

     

    Dubbo :无法加载dubbo.xsd

    Add XML Catalog Element.png

     

    Dubbo :无法加载dubbo.xsd

    Add XML Catalog Element-New.png

  • 将图中的Key:的内容修改为http://code.alibabatech.com/schema/dubbo/dubbo.xsd, 点击确定。

    Dubbo :无法加载dubbo.xsd

    修改后的内容.png

     

  • 在对应的xml文件中右键,选择Validate即可。

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-09-18
  • 2021-10-01
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-09-05
  • 2022-01-13
  • 2022-12-23
  • 2021-12-22
  • 2021-04-14
相关资源
相似解决方案