1. 程式人生 > >使用dubbo時applicationContext.xml報錯解決辦法

使用dubbo時applicationContext.xml報錯解決辦法

因為專案需求,需要用到dubbo,所以找了一個dubbo的例子,但是導

入到eclipse裡面後,發現applicationContext.xml報錯

這裡寫圖片描述

錯誤資訊:

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.xsd進行配置。

在eclipse中配置如下:

windows->preferrence->xml->xml Catalog

這裡寫圖片描述

add->catalog entry ->file system

這裡寫圖片描述

點選file System選擇dubbo.xsd檔案(在dubbo-2.5.3.jar內有dubbo.xsd檔案,本人是解壓縮了dubbo-2.5.3.jar,從裡面拉出來了dubbo.xsd檔案)

我把dubbo.xsd檔案也上傳分享了,沒有的可以自己下載

找到Location後,輸入key值

然後點選OK

然後在xml檔案右鍵選擇validate

這裡寫圖片描述

然後報錯就消失啦。

相關推薦

使用dubboapplicationContext.xml解決辦法

因為專案需求,需要用到dubbo,所以找了一個dubbo的例子,但是導 入到eclipse裡面後,發現applicationContext.xml報錯 錯誤資訊: Multiple annotations found at this line:

Spring整合DubboXML解決

spring整合dubbo時,xml配置檔案也遇到過這種情況。 dubbo配置檔案報錯 在配置dubbo服務的過程中,經常會遇到雖然程式能夠跑起來,但是配置檔案一堆紅叉,雖然不影響功能,但是確實很讓人噁心。 報錯資訊如下: Multiple annotations

mybatis中xml檔案第一行解決辦法

將   <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "<span style="color: #

maven web專案pom.xml檔案頭部解決辦法,親測有效。

建立maven web工程之後會出現如下的錯誤,在pom.xml檔案頭部 有以下的錯誤 這個錯誤的直接原因是:缺少依賴包引起的, 網上大多是方法是:找到沒有下載完全的依賴包,然後右鍵專案–>Maven–>Update Project即可,讓工程重新自動下載

python 鏈接codis 解決辦法 command 'EXEC' is not allowed

command 'exec' is not allowed python redis codis [[email protected]/* */ ceph]# python ../pkg/redisbase.py Traceback (most recent cal

Authentication token manipulation error解決辦法

erro ive 參考 ext .net center tex tps tro Authentication token manipulation error報錯解決辦法 #參考http://blog.163.com/junwu_lb/blog/static/1916798

Mysql安裝解決辦法

base edi 註意 eve program 搜索 重新啟動 5.1 edit .msi版MySQL安裝包在安裝最後執行的時候到第三部或者第四部死掉 主要是因為之前安裝的版本沒有卸載幹凈,要卸載幹凈MySQ安裝包有一些幾個步驟: 1.通過卸載程序MySQL的相關組件 2。

ORA-09817: Write to audit file failed 解決辦法

ora-09817 archivelog 上午開虛擬機登錄數據庫的時候,突然就報錯:ORA-09817: Write to audit file failed寫入失敗?不會是磁盤滿了吧?當然,no space left on device提示的很明顯,df -h 查詢一下,果然100%了:馬上搜羅下o

vue-cli打包構建常見的解決方案

imu cli blog error: 背景 服務 strong 背景圖 log 報錯1:打包後丟到服務器中,打開是空白頁 報錯2:打包後想要在本地file中打開,但是打開是空白頁 報錯3:打包後在瀏覽器中打開,報錯ERROR in xxx.js from UglifyJs

Maven 本地倉庫明明有jar包,pom文件還是解決辦法

lips rep win 選擇 class osi 方案 pom nbsp 方法一: 找到出錯的jar包文件位置,刪掉_maven.repositories文件 方法二: maven中的本地倉庫的index索引沒有更新導致 解決方案:

loadrunner-27077解決辦法

包含 use msg 報錯解決 運行時 init AC 警告 設置 警告 -27077: “每次叠代模擬一個新用戶”運行時設置為“開”時,“vuser_init”節將包含 Web 函數。這可能會產生具有多次叠代的不可預測結果 [MsgId: MWAR-27077] 正在

3.django連接mysql數據庫及安裝mysqldb驅動解決辦法

64位 分享圖片 l數據庫 required 後來 AS password www com 1.在setting.py設置連接數據庫 DATABASES = { ‘default‘: { ‘ENGINE‘: ‘django.db.backends.m

Rsync服務器搭建遇到的解決辦法

Rsync報錯 linux centOS 遇到錯誤1:[root@backup tmp]# rsync -avz /etc/hosts -e 'ssh -p 22' [email protected]:/tmp/rsync: Failed to exec ssh: No such fi

PHP 結合memcache make 過程的解決辦法

PHP memcache 安裝完LAMP中PHP,後面在PHP結合memcache,換成插件的過程中出現出錯的解決辦法 cd memcache-2.2.1 /application/php5.3.27/bin/phpize ./configure --with-php-config

python2.x下pip install mysql-python解決辦法

分享圖片 alt info pan www. 下載 ima sql pytho 在https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python 下載該驅動網盤鏈接:https://pan.baidu.com/s/1r0

for迴圈呼叫刪除方法解決辦法

1.每次刪除一個元素,索引往前移,即i-1.      List<String> list = new ArrayList<String>();      list.add("111");  &nbs

vue eslint解決辦法

overlay formatter form emit tel erl ORC bubuko 解決辦法 若提示入下圖時,在build / webpack.base.conf.js中, 找到 // const createLintingRule = () => ({//

Navicat for MySQL 最新版安裝與破解 + 解決辦法

Navicat for MySQL 最新版安裝與破解 + 報錯解決辦法 MySQL 8.0.13 下載地址: 下載地址:https://dev.mysql.com/downloads/installer/ 我選擇是 mysql8.0.13 進行安裝(目前windows最新版本)

AttributeError: 'module' object has no attribute 'urlopen解決辦法

AttributeError: ‘module’ object has no attribute 'urlopen 在python3中此處的urllib都應該改成urllib.request python NameError: name ‘raw_input’ is not define

mybatis解決辦法 :Result Maps collection does not contain value for java.lang.String

錯誤 java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.lang.String at org.apache.ibatis.session.Configura