| Author |
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. Thanks
|
---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
|
 |
Surya Vamshi
Greenhorn
Joined: Aug 25, 2005
Posts: 9
|
|
Hi, 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. Thanks
|
 |
Abdul Rahman
Ranch Hand
Joined: Jul 04, 2008
Posts: 62
|
|
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.
Thanks
|
Abdul
SCJP5, SCWCD5, [scwcd wall of fame]
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6588
|
|
|
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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
kona krishnakumar
Ranch Hand
Joined: Dec 03, 2011
Posts: 30
|
|
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
Greenhorn
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.
Anand
|
 |
 |
|
|
subject: JDBC driver is not on the CLASSPATH
|
|
|