• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JDBC driver is not on the CLASSPATH

 
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
look at server directory.
something like weblogic700/server/lib.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 42
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic