Chinaunix首页 | 论坛 | 博客
  • 博客访问: 887030
  • 博文数量: 282
  • 博客积分: 10843
  • 博客等级: 上将
  • 技术积分: 2435
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-01 15:23
文章分类

全部博文(282)

文章存档

2013年(1)

2012年(18)

2011年(14)

2010年(30)

2009年(48)

2008年(55)

2007年(55)

2006年(61)

分类: Java

2008-01-01 12:03:53

    新年第一帖,祝所有走路路过错过的各位新年快乐!开心、满足!
    遇到一个新问题,ssh项目部署时遇到Document root element "beans", must match DOCTYPE root "null".的错误提示,网上很多人说要把applicationContex.xml文件中加上如下第二行的标签,说明DTD,其实并不准确。


……

    后来在spring forum上发现了正解:
You have the wrong xml configuration for the version of spring.

1.x use DOCTYPE
2.x use schema

You must have 1.x in the classpath.
引自

    现在明白了,spring 1.x 使用DOCTYPE,而2.x是用schema,我的项目出错原因是由于前面的其他错误怀疑spring版本问题把spring2.0换成了spring1.2,但applicationContex.xml还是使用

xmlns=""
xmlns:xsi=""
xsi:schemaLocation="   /spring-beans-2.0.xsd">
    更换spring为2.0问题解决。

阅读(1169) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-06-17 09:14:45

thanks!

chinaunix网友2008-02-20 11:15:05

好帖