日期:2014-05-20  浏览次数:20785 次

冰天雪地跪求解决新手S2SH框架问题
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
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 java.io.FileNotFoundException: class path resource [com/test/bean/User.hbm.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [com/test/bean/User.hbm.xml] cannot be opened because it does not exist


我是struts2.2+spring2.0+hibernate3.0做的 一开始又是又是这个错误,把冲突包asm-2.2.3.jar删除 还是显示这个
commons-pool这个包都有的.语法应该没错的.
试过好多方法啦 跪求解决办法..

------解决方案--------------------
com/test/bean/User.hbm.xml 这个XML文件 检查一下, 有否 在applicationcontext里
------解决方案--------------------
很明显,在 class path 下,com/test/bean/User.hbm.xml不存在
------解决方案--------------------
com/test/bean/User.hbm.xml不存在