| Author |
Doubt on Hibernate application
|
rudreshashok kumar
Greenhorn
Joined: Aug 27, 2006
Posts: 16
|
|
HI All, I started learning Hibernate and wanted to develop a small application, so deployed the first example from the following url (sample1) http://www-128.ibm.com/developerworks/websphere/techjournal/0409_patil/0409_patil.html deployed as told by the tutor in WASD 5, and changed the database properties, When started the application, i am getting Error saying " F net.sf.hibernate.connection.DriverManagerConnectionProvider JDBC Driver class not found: com.ibm.db2.jcc.DB2Driver net.sf.hibernate.HibernateException: JDBC Driver class not found: com.ibm.db2.jcc.DB2Driver I have given it as <property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property> i tried to change the db2java.jar with my own db2 driver even then same error can some one pls help me in solving this Thanks Rudresh
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
This would be better asked in our ORM forum. Moving...
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8142
|
|
net.sf.hibernate.connection.DriverManagerConnectionProvider JDBC Driver class not found: com.ibm.db2.jcc.DB2Driver net.sf.hibernate.HibernateException: JDBC Driver class not found: com.ibm.db2.jcc.DB2Driver
You will have to have the jar file containing the driver (com.ibm.db2.jcc.DB2Driver) in the classpath of the application.
|
[My Blog] [JavaRanch Journal]
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8142
|
|
I just had a look at the article that you are refering and it does mention where to place the jar file of your driver. Here's what it says:
Be sure you copied the JDBC driver JAR files into the WEB-INF/lib folder, otherwise an exception may occur.
|
 |
 |
|
|
subject: Doubt on Hibernate application
|
|
|