Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC driver is not on the CLASSPATH

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at server directory.
something like weblogic700/server/lib.
 
chsanthosh kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Surya Vamshi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should pick it up if it is in the classpath. Perhaps there is a type erroor or the path is incorrect
 
kona krishnakumar
Ranch Hand
Posts: 42
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic