posts - 7,  comments - 4,  trackbacks - 0
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/config-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

替换hbm.xml文件的DTD为

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">


可以参考一下:
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd
posted on 2007-10-14 03:10 神的小火柴 阅读(2241) 评论(2)  编辑  收藏

FeedBack:
# re: parse错误
2009-01-09 21:54 | zlm
非常感谢!
我从中受益!  回复  更多评论
  
# re: parse错误
2011-11-07 10:38 | date
厉害!解决了。。。  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 
<2011年11月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿(1)

随笔分类

随笔档案

文章分类

搜索

  •  

最新评论

阅读排行榜

评论排行榜