• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

hibernate3 & spring 1.2.4

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic