zoukankan      html  css  js  c++  java
  • 配置Dubbo 项目遇到的坑---无法读取方案文档 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'

    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 . 

    根据错误提示发现从http://code.alibabatech.com/schema/dubbo/dubbo.xsd地址下无法下载dubbo.xsd文档,需要手动配置一下“
            1. 去网上提前下载好dubbo.xsd文档,保存到本地路径下。
             2. 在eclipse中选择在windows->preferrence->xml->xmlcatalog->add->catalog entry  ->file system
             3.选择下载好的dubbo.xsd文档
             4.修改Key值,要和配置文件中的”http://code.alibabatech.com/schema/dubbo/dubbo.xsd“地址一样。
             5.在xml文件右键validate就可以解决了。

    如果继续报错:考虑是否版本问题

    我一开始pom.xml 中配置

     <!-- dubbo相关 -->

       <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>dubbo</artifactId>
        <version>2.5.3</version>
       </dependency>

    按照上述办法依然报错

    改成

    <!-- dubbo相关 -->
       <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>dubbo</artifactId>
        <version>2.6.0</version>
       </dependency>

    就不报错了

  • 相关阅读:
    数据库表设计--备份记录的表设计优化
    WINDOWS CLUSTER -- 时间不同步导致的群集问题
    SQL Server--存在则更新问题
    MySQL--Ansible推送密钥实现免密码登录
    我命由我不由天
    hive中同源多重insert写法
    单文件数据库
    NTP时钟同步配置
    SQL中左连接on and条件和where条件执行先后顺序
    maven引入CDH依赖包
  • 原文地址:https://www.cnblogs.com/helenwq/p/11731288.html
Copyright © 2011-2022 走看看