This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes JDBC driver is not on the CLASSPATH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JDBC driver is not on the CLASSPATH" Watch "JDBC driver is not on the CLASSPATH" New topic

JDBC driver is not on the CLASSPATH

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am trying to create a Conncetion Pool to a MYSQl database and which each try i get this error "JDBC driver is not on the CLASSPATH". I figure i have to dump mysql database Jar files into one of the directories of Weblogic 8.1 Server which i am using but i have forgotten which one
Sandeep Advani
Ranch Hand

Joined: Mar 11, 2004
Posts: 78
look at server directory.
something like weblogic700/server/lib.
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
Hi All,
Please check for mysql_connector_java.jar file in your classpath.
if it's exist in the classpath it will work for you .
if not please place the jar file in your class apth and do the connection pooling it will work for you.


---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
Surya Vamshi

Joined: Aug 25, 2005
Posts: 9

I am also getting the same error JDBC driver is not on the CLASSPATH. I have set the classpath. Can any one help me. I am using windows 2000. both mysql and weblogic are on same server. Also I am getting error when I type classpath in CMD line.

Abdul Rahman
Ranch Hand

Joined: Jul 04, 2008
Posts: 63
Hi I too have the same problem. I'm trying to configure a data source in my weblogic server 8.1. I get this error while testing driver configuration : JDBC driver is not on the CLASSPATH

I put the related jar file in the server's lib folder like: weblogic81\server\lib.
In my domain's startWebLogic.cmd i modified this file to include the above jar file in the classpath something like this: CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%WL_HOME%\server\lib\MYJAR.jar;%CLASSPATH%

I stopped and started the server. Yet I get the above error. Any help in this regard will be highly appreciated. I've spent a couple of hours now trying to figure this out but can't.


SCJP5, SCWCD5, [scwcd wall of fame]
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

It should pick it up if it is in the classpath. Perhaps there is a type erroor or the path is incorrect

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
kona krishnakumar
Ranch Hand

Joined: Dec 03, 2011
Posts: 41
I have also got the same error "JDBC driver is not in the classpath" when I am configuring connection pool.

I had edited in my domain's startWeblogic.cmd as the following

set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%;C:\bea816\weblogic81\server\lib\mysql.jar

and restarted the server and then configured the connection pool successfully.
Ananda Durgam

Joined: Jun 24, 2009
Posts: 1
Hi All,

I am getting the same error on Weblogic8 with MS SQL Server.
The sqljdbc.jar driver is on the path C:\Program Files\bea\weblogic814\server\lib
and also added the setEnv as CLASSPATH=%BEA_HOME%\weblogic814\patches\CR210310_81sp4.jar;%SERVER_DIR%\lib\sqljdbc.jar;%CLASSPATH%;%SERVER_DIR%\lib\weblogic_sp.jar;%SERVER_DIR%\lib\weblogic.jar;

As it is bit urgent, can anyone please help/share your thought on this issues?

Thanks in advance.

I agree. Here's the link:
subject: JDBC driver is not on the CLASSPATH
It's not a secret anymore!