matching wildcard is strict, but no declaration can be found for element for

今天重裝了一下MyEclipse7.5,打開原來的Flex項目,又報了以下兩個錯誤,之前解決過,但不想又出現,於是把它的解決方法貼出來,做個備忘!

錯誤信息爲
錯誤信息 寫道
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:message-broker'.

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:remoting-destination'.



問題根源在於Eclipse無法識別上面的兩個標籤,解決之道爲:


解決之道 寫道
1、將org.springframework.flex-1.0.1.RELEASE.jar拷貝到項目的lib目錄下;
2、選擇elcipse的window-->preferences,彈出相應對話框;
3、在對話框的的type filter text位置數據 xml c,您將看到XML Catalog,點擊進入;
4、選擇User Specified Entries,單擊添加,然後, 在彈出的對話框相應位置填入
Location: abm/WebRoot/WEB-INF/lib/org.springframework.flex-1.0.1.RELEASE.jar!/org/springframework/flex/config/xml/spring-flex-1.0.xsd
Key Type: Schema Location
Key: http://www.springframework.org/schema/flex
5、重複4操作,相應位置填入
Location: abm/WebRoot/WEB-INF/lib/org.springframework.flex-1.0.1.RELEASE.jar!/org/springframework/flex/config/xml/spring-flex-1.0.xsd
Key Type: Schema Location
Key: http://www.springframework.org/schema/flex/spring-flex-1.0.xsd

至此,便可解決。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章