0

I have been upgrading my project from Hibernate 3.x version to Hibernate 4.1.4. Now I have a peculiar problem with me.

After placing all the required JARs and referring them on the classpath, builing java.lang.NoClassDefFoundError: org/hibernate/HibernateException

This class was present in hibernate3.jar earlier. Now, Its in Hibernate-core. Still not able to figure out why its saying so..

I deleted the earlier deployments and deployed this again. Verified Hibernate 4 jars being present there. Still I get this error when I start server.

Any help on this would be very much appreciated.

Pavan Kumar
  • 463
  • 2
  • 10
  • 18

1 Answers1

0

Thanks for all your help people. The issue was due to reference of hibernate3.jar in an ant build file. Had to change it to hibernate*.jar which solved the problem.

Pavan Kumar
  • 463
  • 2
  • 10
  • 18