头痛呀Error creating bean with name 'sessionFactory' defined in ServletContext resource
今天我把工程做了一点移植和修改结果报错了,怎么也解决不了啊,各位GG帮帮我呀~~~小女人在线等待
17:52:25,625 INFO [STDOUT] 17:52:25,609 ERROR [ContextLoaderPlugIn] 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 org.hibernate.InvalidMappingException: Could not parse mapping document from file E:\jboss-4.2.0.CR1\server\default\deploy\xAdslMIBS.war\WEB-INF\classes\dao\com\hiaward\framework\xbankmibs\model\Fee.hbm.xml
Caused by:
org.hibernate.Invalid
MappingException: Could not parse mapping document from file E:\jboss-4.2.0.CR1\server\default\deploy\xAdslMIBS.war\WEB-INF\classes\dao\com\hiaward\framework\xbankmibs\model\Fee.hbm.xml
at org.hibernate.cfg.Configuration.addFile(Configuration.java:319)
at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:662)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:707)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
------解决方案--------------------我顶呀
------解决方案--------------------检查一下类的映射文件,是否和类以及数据库表对应,建议用myEclipse自动生成实体类和配置文件