关于ssh错误Error creating bean with name 'sessionFactory'
茶叶 2010-06-10 02:57:32 ssh整合遇到很奇怪的错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-comm.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/context/CurrentSessionContext
很是困惑,关于此错误主要是包的问题,检查spring包中除了核心包以下spring类库的包加上问题解决
测试了缺一不可。slf4j-log4j12-1.5.0.jar,slf4j-api-1.5.0.jar,javassist-3.4.GA.jar,dom4j-1.6.1.jar