Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate3 & spring 1.2.4

 
Doug Anderson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to move a spring based project from hibernate 2.x to hibernate3

I have swapped out the hibernate jar, changed the references in my xml from net.sf.hibernate to org.hibernate and am using

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
.
.
.
</bean>

as my sessionFactory


I am getting the following

java.lang.NoClassDefFoundError: net/sf/hibernate/SessionFactory

which is a hibernate 2.x class.


Any suggestions on how to resolve this dependancy?


thanks in advance


doug anderson
 
Doug Anderson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are the libs in my class path

324153 Sep 1 11:12 cglib-nodep-2.1_2.jar
559366 Sep 1 11:15 commons-collections.jar
31605 Aug 30 12:25 commons-logging-1.0.3.jar
47531 Sep 1 11:13 ehcache-1.1.jar
1674454 Aug 30 12:26 hibernate3.jar
11630000 Aug 30 12:25 j2ee.jar*
121070 Aug 30 12:25 junit-3.8.1.jar
350677 Aug 30 12:25 log4j-1.2.7.jar
397032 Aug 30 12:25 mysql-connector-java-3.1.7-bin.jar
1847568 Aug 26 22:31 spring.jar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic