`
u011721609
  • 浏览: 40796 次
社区版块
存档分类
最新评论

class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class

 
阅读更多
java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class

我的问题解决啦!
hibernate3.5中的hibernate3.0包,已经包涵了hibernate-annotations,hibernate-commons-annotations.jar,commons-collections 这三个包,所以你要去掉commons-collections 包试试,
或许就成功了!
我的解决方案就是这样的!

========================
hxzon:
移除hibernate-annotations,hibernate-commons-annotations.jar,成功。
移除了persistence.jar和ejb3-persistence.jar,添加了hibernate-jpa-2.0-api-1.0.0.Final.jar。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics