Spring cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration

菜雞03號發表於2016-09-25
轉載自:http://redsnow-fenglin.iteye.com/blog/686907 

  今天重灌了一下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

至此,便可解決。
注:abm是我的工程名,您需要做相應的改動!

相關文章