During working on Hibernate-JSF project on Eclipse, I got such errors;
java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
java.lang.NoSuchFieldError: INSTANCE
For this situation, two annotation modules are detected in library files that are already added into the project for Hibernate processes. It causes conflict. Since "hibernateX.jar - hibernate core library" can perform annotation task without other dependency, you should delete both "hibernate-annotations.jar" and "hibernate-commons-annotations.jar" files to solve these kinds of problems.
Hiç yorum yok:
Yorum Gönder