• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception thrown :org.hibernate.Hibernate Exception

 
Vidya Moorthy
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am trying a simple hibernate program in my web project and it throws this error. I have put the DB2 java.zip file in the class path already. Please help me!

Thanks
Vidya
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you put the ZIP file in the classpath or the JAR file? If the ZIP file contains the JAR file, extract it and use the JAR file.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The other question might also be, is "Where on the classpath did you put it?" Classloaders can be a funny thing.

-Cameron McKenzie
 
Vidya Moorthy
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
Did you put the ZIP file in the classpath or the JAR file? If the ZIP file contains the JAR file, extract it and use the JAR file.

There is no jar file inside the zip. Hence I used the zip file only.

I put the db2.zip on the project's build path in IRAD 6.0.

The strange thing is I have tried this project a few weeks ago before my hard drive crashed and it worked then. I imported all the jars in hibernate3.2.6/lib into WEB-INF/lib and then added all those jar files in the build path and included the hibernate3 jar too in the build path. Please correct me if I missed something.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic