-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Migration from 3.2.6 to 3.5.2
PostPosted: Thu Oct 14, 2010 6:10 am 
Newbie

Joined: Thu Oct 14, 2010 6:08 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.