错误描述:
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 invalid mapping
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from invalid mapping
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:651)
解决方法:
把Reference librarie下的asm-2-2-3.jar包删除掉,再试试!
分享到:
相关推荐
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean ...
对于Hibernate,错误`org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in resource`可能是因为缺少JTA(Java Transaction API)的支持,例如找...
另外,文档中提及了Spring框架在应用中可能遇到的一个错误提示:“BeanCreationException: Error creating bean with name 'sessionFactory'”。这通常是因为bean的配置或Spring与Hibernate配置冲突导致的。解决此类...
首先,异常信息"Error creating bean with name 'sessionFactory' defined in class path resource"通常表示Spring容器在创建sessionFactory bean时遇到了问题。sessionFactory是Hibernate用于创建session的工厂类,...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init...
异常信息:“Error creating bean with name 'hibernateSessionFactory'” 这通常是因为在Spring容器初始化阶段,名为`hibernateSessionFactory`的Bean创建失败。问题可能出在: - **配置错误**:检查`WEB-INF/...
- 如果出现“Error creating bean with name 'sessionFactory'”这样的异常,通常是因为Hibernate配置存在问题或者某些依赖未被正确加载。 - 检查Hibernate配置文件(如hibernate.cfg.xml)中的配置项是否正确。 ...
Aliasing a bean outside the bean definition ................................................ 28 Instantiating beans .......................................................................................
Aliasing a bean outside the bean definition ................................................ 28 Instantiating beans .......................................................................................