Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Error Loading Driver Class while using mysql's mm driver

 
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>
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • 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
 
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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic