struts2+hibernate3整合之java.lang.ClassNotFoundException: org.hibernate.Session
2013-04-26 13:54
537 查看
struts2与hibernate整合时
使用单元测试时可以从数据库中查找,保存数据,但是通过action类来调用hibernate的session中的save,get方法时出现
参考 http://blog.knowsky.com/191201.htm
使用单元测试时可以从数据库中查找,保存数据,但是通过action类来调用hibernate的session中的save,get方法时出现
java.lang.ClassNotFoundException: org.hibernate.Session
的异常。解决方案:首先把项目的java build path的jar包remove,项目的把所有的jar包放入WEB-INF下的lib,重新部署,重启。问题就解决了。参考 http://blog.knowsky.com/191201.htm
相关文章推荐
- java.lang.ClassNotFoundException: org.hibernate.Session问题解决
- Spring4.0+Hibernate4.2.整合出现java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
- java.lang.ClassNotFoundException: org.hibernate.Session
- Caused by: java.lang.ClassNotFoundException: org.hibernate.Session
- spring事务配置Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.SessionFactoryImplemento
- spring hiberante 集成出现异常 java.lang.ClassNotFoundException: org.hibernate.engine.SessionFactoryImplementor
- spring3.0.5 和hibernate3.6整合问题之java.lang.ClassNotFoundException: org.objectweb.asm.Type
- java.lang.ClassNotFoundException: org.hibernate.engine.SessionFactoryImplementor
- java.lang.ClassNotFoundException: org.hibernate.Session 解决办法
- Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionImpl
- Jsp+Hibernate开发中遇到的问题 java.lang.ClassNotFoundException: org.hibernate.Session的解决
- Mybatis异常:java.lang.ClassNotFoundException: org.mybatis.spring.SqlSessionFactoryBean
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
- Caused by: java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession 报错的原因
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext
- java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- 关于 java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition的问题
- 异常:java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
- Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform