zoukankan      html  css  js  c++  java
  • 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’.

      公司的项目,本机启动报错:

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

      原因:由于网络环境或者其他未知的问题,Eclipse识别<dubbo:application>标签出错。

      解决:搞一个dubbo.xsd文件来,网上找或者从dubbo.jar中找,在Eclipse中手动添加。

      windows->preferrence->xml->xmlcatalog add->catalog entry ->file system 选择刚刚保存的文件路径,修改key值和配置文件

      http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同保存,在xml文件右键validate。

      不知道是不是IDE的问题,在使用Eclipse的时候经常会遇见这个问题,IDEA中却很少见到。

  • 相关阅读:
    Uva 1636 决斗
    数论初步
    Gym 100169A 最短路
    Uva 12169 不爽的裁判 模运算
    Uva 11582 巨大的斐波那契数 模运算
    Uva 10791 最小公倍数的最小和 唯一分解定理
    Uva 10375 选择与除法 唯一分解定理
    poj 3485 区间选点
    第二届团体程序设计天梯赛
    Uva 12657 双向链表
  • 原文地址:https://www.cnblogs.com/Ezi0/p/10393203.html
Copyright © 2011-2022 走看看