各位大侠,小弟在ssh的部署中出现问题,有谁遇到过或知道怎么处理,请帮忙解决一下。——————————
严重: Context initialization failed
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 [oa/bean/User.hbm.xml] cannot be opened because it does not exist...Caused by: java.io.FileNotFoundException: class path resource [oa/bean/User.hbm.xml] cannot be opened because it does not exist——————————但这个文件oa/bean/User.hbm.xml 确确实实的存在,以前部署在其它电脑上成功运行过,现在却出现这个问题,不知怎么回事?

解决方案 »

  1.   

    好像找不到这个oa/bean/User.hbm.xml配置文件诶,会不会写错啊?
      

  2.   

     把User.hbm.xml加入到classpath里,就是放到你的包里。最简单的是放在src下就行。
      

  3.   

    找不到这个oa/bean/User.hbm.xml配置文件
      

  4.   

    我的是 找不到[META-INF/cxf/cxf.xml]文件,,之前都是好好的,我加了什么包,就不行了,高手指点哈?org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/cxf/cxf.xml]
      

  5.   

    找不到这个oa/bean/User.hbm.xml配置文件,把这个文件放到src下,在用绝对路径试试。
      

  6.   

    手动把User.hbm.xml文件复制到classes文件夹下一般就可以解决问题。
      

  7.   

    你编译后的User.hbm.xml可能与你现在src里User.hbm.xml的路径有差别,你可能看一下classes文件下User.hbm.xml文件的真实路径,然后在spring.xml文件里写上这个路径就行了!
      

  8.   

    java.io.FileNotFoundException: class path resource [oa/bean/User.hbm.xml] cannot be opened because it does not exist找不到文件啊
      

  9.   

    class path resource [oa/bean/User.hbm.xml] cannot be opened because it does not exist
    找不到 oa/bean/User.hbm.xml
      

  10.   

    貌似没编译的样子、项目clear一下、让ide 重新编译下你的xml 在classpath下看看是否存在你要的xml文件