• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception thrown :org.hibernate.Hibernate Exception

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic