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>

    就不报错了

  • 相关阅读:
    Nginx、PCRE和中文URL(UTF8编码)rewrite路径重写匹配问题
    Nginx 使用中文URL,中文目录路径
    再谈Nginx Rewrite, 中文URL和其它
    事务管理
    commons-dbcp连接池的使用
    JDBC操作简单实用了IOUtils
    JDBC进行处理大文件和批处理
    mysql日期函数(转)
    mysql约束(自己原先总结的有点不准)
    mysql笔记(前面自己写的不标准有些地方)
  • 原文地址:https://www.cnblogs.com/helenwq/p/11731288.html
Copyright © 2011-2022 走看看