hibernate struts jsp

来源:百度知道 编辑:UC知道 时间:2024/06/24 01:03:41
我用hibernate和struts来做一个工程,用hibernate来访问access数据库,用testMain方法来测试dao方法,是可以访问到数据库的,但是一联上struts,用同样的代码却报错,为什么?
%%%% Error Creating SessionFactory %%%%
org.hibernate.MappingException: Could not read mappings from resource: entity/Login.hbm.xml
我用的是access的数据库

把代码文件发到我的邮件里面或者在线和我说话!
我的HI在线呢!

去掉hibernate.cfg.xml里的entity/Login.hbm.xml

hibernate的映射文件错误!

SessionFactory 没有初始化