Hi All,
Actually I need to migrate Hibernate from version 3.2.6 to 3.5.2. While doing that, building it with maven and running I got across following error with spring version 2.5.5
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in class path resource [application.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Found interface org.hibernate.cfg.Mappings, but class was expected
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:405) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
So it looked like I need to upgrade version of spring as well from 2.5.5 to 3.0.x. So, I started to migrate Spring version also to 3.0.4.RELEASE, but this version of spring doesn't contain Spring.jar as compared to previous versions of Spring.
So, when I change Spring version in pom.xml to 3.0.4.RELEASE mvn tries to download spring3.0.4.RELEASE.jar which it is not able to find and hence buil fails.
Please suggest some solution if anyone has done the same?
Thanks Vijesh
|