Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Loading Driver Class while using mysql's mm driver

 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the jar file into the classpath
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did that, but so far no solution.
Thanks & Bye,
Tualha Khan
 
Michael Pearson
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic