File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Error Loading Driver Class while using mysql's mm driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Error Loading Driver Class while using mysql Watch "Error Loading Driver Class while using mysql New topic
Author

Error Loading Driver Class while using mysql's mm driver

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Dear Al,
Hey,
I am trying to club mysql with wls 6.1. For connectivity I am using the mm.mysql-2.0.4-bin.jar driver. I am not able to load the driver even after placing the file under the <bea_home>/wlserver6.1/lib directory. I a using the following URL and the Driver Statement:
URL: jdbc:mysql://localhost/<my_db_name>
Driver: org.gjt.mm.mysql.Driver

Any suggestions on how to get it working. However, I am able to use the driver for simple jdbc application outside the wls.
Thanks & Bye,
Tualha Khan
Exact Error output:
<May 18, 2002 12:50:50 PM IST> <Error> <JDBC> <Cannot startup connection pool "J
asmine_Connections" Cannot load driver class: org.gjt.mm.mysql.Driver>


SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Add the jar file into the classpath


Groovy
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Did that, but so far no solution.
Thanks & Bye,
Tualha Khan
Michael Pearson
Ranch Hand

Joined: Mar 11, 2001
Posts: 351
Did you setup a Connection Pool? The error statement points to the lack of a Connection Pool, something WebLogic uses to manage JDBC connections.
Configuring WebLogic 6.1 JDBC
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Well I was able to solve the problem, I was not setting the classpath in the right file (startWeblogic.cmd), but was doing it in (setEnv.cmd). After appending the driver to startWeblogic.cmd's classpath entry, it all worked up properly. Thanks a tonne to all of you.
Thanks & Bye,
Tualha Khan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Loading Driver Class while using mysql's mm driver
 
Similar Threads
Tomcat 4.1.31 Connection Pooling Problem
ClassNotFoundException
driverName or URL or ..., plz help
Cannot load driver class: com pointbase jdbc.jdbcUniversalDriver
E SRVE0026E: [Servlet Error]