Hello guys,

I've stumbled upon some trouble while upgrading my hibernate version to
hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to build
and run integration-test, this error will come out.

ERROR - ContextLoader.initWebApplicationContext(203) | Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in URL [
file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-
dao.xml]: Invocation of init method faile
d; nested exception is java.lang.NoClassDefFoundError:
org/hibernate/annotations/common/reflection/ReflectionManager
Caused by:
java.lang.NoClassDefFoundError:
org/hibernate/annotations/common/reflection/ReflectionManager


It seems that the new version of hibernate annotation needs a particular jar
file to work. If you download the hibernate annotation zip file, go to the
lib folder and you'll find a jar file named hibernate-common-annotations.jar.
Install this file in your maven repository and include the dependency in
your pom.xml file.  Then, everything will work normally.


-- 
/fadhli

Reply via email to