请教Document root element "beans", must match DOCTYPE root "null"

07-05-28 adviceid

当我装载这样的 bean.xml没有任何问题:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

.........许多的bean

</beans>

当我装载这样的 bean.xml却抛出 Document root element "beans", must match DOCTYPE root "null" 异常:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:aop="http://www.springframework.org/schema/aop"

xmlns:tx="http://www.springframework.org/schema/tx"

xsi:schemaLocation="

http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">

.....

</beans>

是不是我缺少了某个LIB包???

xjtdream
2008-05-28 23:50

应该少了jar文件,,或有多个版本的jar文件,,发生冲突,。。。

durant11
2011-06-14 15:52

在确保包没有冲突的情况下,

后来删除weblogic安装目录下的缓存文件

我删除本机文件的目录是: C:\bea\user_projects\domains\durant\servers\AdminServer\tmp\_WL_user!