`
反求诸己
  • 浏览: 547914 次
  • 性别: Icon_minigender_1
  • 来自: 湖南娄底
社区版块
存档分类
最新评论

异常:Error creating bean with name 'sessionFactory'

阅读更多

错误描述:

 

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包删除掉,再试试!

分享到:
评论

相关推荐

    hibernate错误解决方案

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean ...

    在学习中发现的一些ssh-error

    对于Hibernate,错误`org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in resource`可能是因为缺少JTA(Java Transaction API)的支持,例如找...

    spring知识总结

    另外,文档中提及了Spring框架在应用中可能遇到的一个错误提示:“BeanCreationException: Error creating bean with name 'sessionFactory'”。这通常是因为bean的配置或Spring与Hibernate配置冲突导致的。解决此类...

    JSP 开发SSH整合异常解决办法

    首先,异常信息"Error creating bean with name 'sessionFactory' defined in class path resource"通常表示Spring容器在创建sessionFactory bean时遇到了问题。sessionFactory是Hibernate用于创建session的工厂类,...

    Struts2.1.6+Spring2.5.6+Hibernate3.3.1框架整合常见错误

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init...

    web项目开发经验

    异常信息:“Error creating bean with name 'hibernateSessionFactory'” 这通常是因为在Spring容器初始化阶段,名为`hibernateSessionFactory`的Bean创建失败。问题可能出在: - **配置错误**:检查`WEB-INF/...

    Struts2.1.6+Spring2.5.6+Hibernate3.3.1整合

    - 如果出现“Error creating bean with name 'sessionFactory'”这样的异常,通常是因为Hibernate配置存在问题或者某些依赖未被正确加载。 - 检查Hibernate配置文件(如hibernate.cfg.xml)中的配置项是否正确。 ...

    spring-framework-reference4.1.4

    Aliasing a bean outside the bean definition ................................................ 28 Instantiating beans .......................................................................................

    spring-framework-reference-4.1.2

    Aliasing a bean outside the bean definition ................................................ 28 Instantiating beans .......................................................................................

Global site tag (gtag.js) - Google Analytics