This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes ClassNotFoundException--DB2 Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ClassNotFoundException--DB2 Driver" Watch "ClassNotFoundException--DB2 Driver" New topic

ClassNotFoundException--DB2 Driver

Praveen K Pippiri

Joined: Jun 17, 2002
Posts: 23
I am using Apache Tomcat4.0.4 to connect to DB2 UDB7.2 database.
When I try to use the it is throwing the ClassNotFoundException.
I checked whether the class in the application classpath or not by using the
It is listing the methods of that class.If I connect to database without using Apache it is working fine.
Can anybody please tell me how to use the above driver in Apache Tomcat 4.0.4
Thanks in Advance
[ October 31, 2002: Message edited by: Praveen K Pippiri ]

Praveen<br />Sun Certified Programmer for Java 2 Platform.
Praveen K Pippiri

Joined: Jun 17, 2002
Posts: 23
I got the solution for the above problem.The Tomcat class path is overwriting the system classpath.That is the reason Tomcat is not finding the DB2driver.
wood burning stoves
subject: ClassNotFoundException--DB2 Driver
Similar Threads
jdbc, db2, no suitable driver, linux
JDBC driver for DB2
DB2 Connection Pooling working
db2 express-c 9.7 failure in loading t2 native library db2jcct2
Not able to connect to db2 from java