java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Sessio
2014-03-09 13:22
609 查看
Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session; at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:324) at org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(SessionFactoryUtils.java:235) at org.springframework.orm.hibernate3.HibernateTemplate.getSession(HibernateTemplate.java:457)
参见:
http://m.oschina.net/blog/114244 http://godo121.iteye.com/blog/1473563
主要因为用的是spring3.2.1+hibernate4.2.1。
hibernate4.2.1与hibernate3有所不同
相关文章推荐
- STRUTS的应用(如STRUTS架构)
- JAVA类实现序列化的方法?如在COLLECTION框架中,实现比较要实现什么样的接口。
- JAVA SERVLET API中forward() 与redirect()的区别?
- 介绍JAVA中的Collection FrameWork
- spring DM demo
- Class<T>泛型对象的获取及通过继承了HibernateDaoSupport的注入sessionFacoty的简单方式
- java中abstract
- java项目打jar包
- java json字符串解析
- Link形式离线安装EclipseMaven插件
- java使用jdbc方式连接数据库实例
- myeclipse9.0 mac 版本 安装 及 破解 笔记
- Hibernate&Spring的Reverse Engineering产生的generating artifacts问题
- Java那些不为人知的特殊方法
- 《JavaSE基础教程》电子版书正式发布,欢迎大家下载
- java面向对象(二)
- Ubuntu安装配置JDK
- 你真正理解java的字符类型了吗?(bit,byte,short,int等字符类型)
- java循环某年某月的所有天数
- java数据类型转换