zoukankan      html  css  js  c++  java
  • dubbo 搭建

    github上面下载demo

    https://github.com/WilsonZhang8/dubbo-demo,会报错解决办法,以下别人写的

    原因是文件中路径找不到文件了,下图在看了解决方案来看,图中表示路径,就是配置文件中的找不到的文件的路径

    dubbo配置文件报错处理
    在配置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.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:reference的定义等等。
    废话少说直接上解决方案:
    下载一个dubbo.xsd文件windows->preferrence->xml->xmlcatalog 
    add->catalog entry  ->file system 选择刚刚下载的文件路径
    修改key值和配置文件的http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同
    保存。。在xml文件右键validate  ok解决了。
    有的同学反映,那个xsd文件不好找,其实没有啦 ,就在你下载的dubbo.jar里面,你把它解压了,仔细找找,就会发现的,祝成功!!!

    注意:修改完成之后可能还报错,clean项目,然后xml随便改动一下,例如加个空格键,不影响实际内容,其实就是为了让xml文件变动,被eclipse检查,然后报错xml,否则可能还是报错的样子

  • 相关阅读:
    Reverse Integer
    Reverse Bits
    Number of 1 Bits
    House Robber
    02-线性结构1. 一元多项式求导 (25)
    01-复杂度2. Maximum Subsequence Sum (25)
    <转载>使CSS文字图片div元素居中方法之水平居中的几个方法
    <转载>div+css布局教程之div+css常见布局结构定义
    15个必须知道的chrome开发者技巧
    <转载>Div+Css布局教程(-)CSS必备知识
  • 原文地址:https://www.cnblogs.com/longsanshi/p/7815672.html
Copyright © 2011-2022 走看看