首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

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

2013-09-11 
读取不到资源文件Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework

读取不到资源文件
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

热点排行