Document root element beans , must match DOCTYPE root null

在往Spring2.0项目中添加XFire时(Myeclipse)出现如下错误Document root element "beans", must match DOCTYPE root "null".原因:XFire Core lib 中有Spring1.2.6 与spring 2 冲突!




spring 1.x 使用DOCTYPE,而2.x是用schema,把

 xmlns="http://www.springframework.org/schema/beans"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

删掉,改为



 

详情见博客

你可能感兴趣的:(Document root element beans , must match DOCTYPE root null)