读书人

读取不到资源文件解决思路

发布时间: 2013-09-11 17:27:29 作者: rapoo

读取不到资源文件
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 class path resource [config/spring/database.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [classpath:com/model/users/user.hbm.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [classpath:com/model/users/user.hbm.xml] cannot be opened because it does not exist

请问这是怎么回事?请高手指点迷津。谢谢!!!

[解决办法]
[classpath:com/model/users/user.hbm.xml] cannot be opened because it does not exist

已经说得很清楚了
[解决办法]
看看,mapping文件夹下有没有user.hbm.xml,或者web.xml下看看有相关的uesr.hbm.xml

读书人网 >Java Web开发

热点推荐