java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
这个错误 请大神帮忙 谢了。我的hibernate3.jar在lib里Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

解决方案 »

  1.   

    nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
      

  2.   

    确实像是hibernate本身问题。 到官网下载一个再试一试看看。
      

  3.   

    不是你的Hibrnate jar 有问题,是你的spring jar 包里缺少了spring-orm.jar,把这个jar包加上看看还有问题没有,到时候再问我
      

  4.   

    这个问题 我没有解决但不影响程序运行  实在奇怪  楼上几位说的有道理应该是jar版本的问题 不管了。能运行就好。 结账 。