What is a IncompatibleClassChangeError exception in Java?

后端 未结 6 1532
太阳男子
太阳男子 2020-12-10 02:26

i am working on a small application and I am trying to use Hibernate Annotations to map my entities. I wanted to test if everything is alright when i got this exception :

6条回答
  •  遥遥无期
    2020-12-10 02:40

    Double check if all your libraries are compatible. Try the same with a stable version of hibernate, there's a chance that the beta is defect or the hibernate 3.6.0 beta POM has some incompatible dependencies.

    Try to build it without maven and with hibernate 3.6.0 beta1 libraries from the official servers.


    OK - your problem is not a bug but a new feature. The release notes for Hibernate 3.6.0 Beta2 note a major change to the previous beta: the AnnotationConfiguration is now totally deprecated. So you should (a) update to the most recent beta (Beta3) if you want to keep a 3.6.0 version and (b) do not continue using the AnnotationConfiguration.

提交回复
热议问题