[Spring Java JSP SSH ] ssh整合出错,spring异常,求指教

hzfeibao 2011-10-17
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

在整合ssh时发现“Could not parse mapping document from input stream
”异常,谷歌了一下,资料比较少,要么说是dtd声明为3.0,要么说是hibernate的.hbm.xml文件配置错误,我把配置文件检查了几遍,没发现错误。(以前写的小的ssh整合没有遇到过这样的问题,现在想写一个大一点的,遇到这个异常改不了)
请问大家有没有遇到过这样的错误,错误的原因是什么,大家是怎么解决的
hzfeibao 2011-10-18
自己改掉了,把.hbm.xml文件中one-to-many中的class加上包名或hibernate-mapping中加入package
单独用hibernate时好像没遇到过这样的情况
Ryan200909 2011-11-08
class 肯定要加包名的
Global site tag (gtag.js) - Google Analytics