hibernate反向生成奇葩错误
来源:互联网 发布:淘宝网手套 编辑:程序博客网 时间:2024/05/01 02:00
错误场景
最近搞一个hibernate的项目,由于好久不用hibernate了,稍微有点生疏(自从用了ibatis–>mybatis后)。这个项目用了hibernate,和ibatis、mybatis一样都会遇到反向生成的问题,具体步骤参照这位小哥的,虽然有的地方根据描述找了好久才找到,但是整体还是能用。地址如下
http://jingyan.baidu.com/article/624e745955aa9534e8ba5ab4.html
错误描述
因为中间改了一个地方如下图蓝框中的部分,将默认的3.5改为了3.6(因为项目中的包用的是3.6的)
结果执行最后生成文件的时候就报了如下错误
org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same classReceived a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.reveng.OverrideRepository Could not initialize class org.hibernate.cfg.reveng.OverrideRepository java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.reveng.OverrideRepository Could not initialize class org.hibernate.cfg.reveng.OverrideRepository
最后参照了如下文章才得以解决
http://zhidao.baidu.com/link?url=USTwauWp5FiL-7r_iQKC7Tj0tpuWmnImdNOEBuIU2VEYiY_0ooI7yACIDFkazwzitgBsawB6WGAdG_WH2-g4Ta
0 0
- hibernate反向生成奇葩错误
- hibernate反向生成奇葩错误(续)
- hibernate中的奇葩错误
- myeclipse 反向生成hibernate
- Hibernate反向生成类
- hibernate反向生成数据库表
- Hibernate反向生成EJB注解
- hibernate 反向生成数据库表
- hibernate反向生成数据库表
- hibernate反向生成数据库表
- Hibernate 反向生成hbm文件时出现"ORA-01424”错误的解决办法
- 奇葩错误
- hibernate+oracle的反向生成详解
- 使用hibernate属性反向生成数据库表
- hibernate注解反向生成表结构
- Hibernate 反向生成文件报错解决方法
- 利用Hibernate配置文件反向生成数据库
- eclipse hibernate 反向生成实体类
- 九、解释器设计模式
- 感悟
- JavaScript算法
- Eclipse中Maven管理的jar没有发布到WEB-INF/lib下的解决方案
- 共用数据保护(const 常量)
- hibernate反向生成奇葩错误
- leetcode-260. Single Number III
- hdu 5671 Matrix
- karatsuba乘法
- Activity销毁时返回数据
- 目标跟踪学习笔记_1(opencv中meanshift和camshift例子的应用)
- c语言小项目个人实现
- JSONObject解析json字符串实现
- 使用快速傅里叶变换计算大整数乘法-代码