ConnectionPool - MySql Driver Class Not Found

am trying to set up a connection pool for a MySql Database. I am using the Driver package:
mysql-connector-java-3.0.15-ga
When I try to ping the DataSource I get the following exception reported:
java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
I have put the package in the lib directory of my domain and in many other places and verified that the class
com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
actually exists in the package. Any and all help will be greatly appreciated.

I can put any jack dandy class that is in the jar file in the descriptor and it won't make a difference. I still get the same errors. I was so excited when I saw Sun's security realm sample app and the documentation for it, now I am afraid I just can't trust it, and I have wasted an entire day fooling around with their WAS wantabe admin console.

Similar Messages

  • Data Modeler 3.3EA2 Driver Class Not Found

    When trying to connect to a SQL Server 2008R2 instance I get teh message "Status : Failure -Test failed: Driver class not found. Verify the Driver location"
    I have added the SQL Server JDBC Drivers to my PATH environmental variable, and even tried to put the JDBC driver into a folder without any white spaces in the directory name
    C:\Progra~1\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc4.jar;C:\Progra~1\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc.jar;C:\Temp\sqljdbc4.jar
    I also added the sqljdbc4.jar to the Data Modeler: Third Party JDBC Drivers screen.
    Any thoughts on what can be causing this issue?

    I was unable to get the JDBC ThirdParty Driver to work, since no matter what I did I could not get the Oracle Data Modeler to map to the JDBC jar file. Here is a work around...
    Steps to connect Data Modeler to a SQL Server database.
    On Windows 7
    1. Go to Adminstrative tools -> Data Sources (ODBC)
    2. Select System DSN and setup a connection to your SQL Server database
    3. In Data Modeler click File -> Import to bring up the Database connection string
    4. Click on the JDBC tab
    5. For the OCDBC alias use the connection name you created in step #2
    If anyone else is able to get the JDBC ThirdParty driver to work will you please post it here.

  • SQL Driver class not found

    Hi,
    Wonder if anyone can help. I have developed our own version of the logon page, and in the JSP I read a java database using the recommended driver class com.sap.portals.jdbc.sqlserver.SQLServerDriver which can be found in p9sqlserver.jar. This worked fine.
    After a recent upgrade from SP12 to SP14 the jar in which this class can be found has moved and I now get at class not found exception.
    Looking at the difference between the two versions of the portal comparing the difference of the locations of the jar:
    SP14 - /……/Server0/bin/ext/jdbcdrivers/p9sqlserver.jar  
    SP12 - /…../Server0/bin/ext/datadirect/p9sqlserver.jar
    Does anyone know how I can get my component to find the jar file ?
    Thanks
    Phil

    Hi,
    i have the same - a custom logon Page with SQL-Connect where the driver class cant be found anymore after upgrading to Sap Netweaver Portal 2004s from (EP 6).
    I tried to register the driver (/……/Server0/bin/ext/jdbcdrivers) like advised under:
    http://help.sap.com/saphelp_nw04/helpdata/en/c7/641f44be9f1e4ebbe807cfbad61d44/frameset.htm
    but that did not work for me.
    Did any of you ever solve this poblem.
    THX & regards

  • Driver class not found?

    I'm using Java SE 6 and NetBeans 5.5, and I'm trying to connect to a JavaDB database that I created through NetBeans, but when I try to load the driver using Class.forName("org.apache.derby.jdbc.EmbeddedDriver") I get a ClassNotFoundException. The same thing happens when I try to use ClientDriver instead of EmbeddedDriver. And, when I right-click that driver in the Runtime pane and select Connect Using. . . I get the same error ("suitable driver not found"). Maybe I'm missing something extremely obvious, but I can't for the life of me figure out what it is. I've scoured all of the tutorials I can find on Sun's website, gone through various books on Java and databases, uninstalled and reinstalled all of my Java-related software, even tried different syntax, but I still can't get it to work.
    Any thoughts? I'm sorry in advance if this is a dumb question or it's already been answered, but I've been wracking my brain on this for a couple days now and it's starting to drive me a little crazy. . .

    The class needs to be in your RUNTIME classpath so that the class loader can find it. I emphasized runtime because this important point seems to miss some people.
    At any rate, your drivers are not in your runtimer classpath. Hence the error message.

  • Exception : Driver Class not found

    We have the following configuration : JDBC 2.0 thin client
    drivers, on apache 1.3.4, Sun spark 2.6, with Jdk 1.1.6 and JSDK
    2.0. The drivers are installed in
    $ORACLE_HOME/oracle/jdbc/driver, which is included in the
    CLASSPATH as well.
    Its generating the exception while we do,
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    We have tried by coping the particular class file to the working
    directory. Its still not working. What can be wrong & where?
    null

    I don't believe /etc/profile gets called from cron. If you were to add
    #!/bin/shas the first line of the script, it should get called though.
    But you should really modify the script by adding the above line and then changing:
    java GenerateRSSto
    java -cp /usr/local/tomcat/webapps/ROOT/rss/xml:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/mysql-connector-java-5.0.5-bin.jar GenerateRSSThat of course assumes that GenerateRSS declares no package. If it declares the package "xml", then remove "/xml" from the above. If it declares package "rss.xml", then remove "/rss/xml" from the above.
    Declaring a classpath in /etc/profile as above, is a bad idea (at least when including Drivers and/or other "special" packages). What happens if later applications need a different version of the same driver, and this application, and that one can't use the same version, for whatever reason? One of the two won't work, that is what will happen.
    A classpath should always be declared as close to the execution as possible. Whether that is setting CLASSPATH in an application server, placing the jar in the WEB-INF/lib of an application, declaring a CLASSPATH in a script before executing java, or using the -cp option depends on the situation, but one of those should always be used.

  • Microsoft jdbc driver class not found error

    hello,
    i have installed jdbc driver for 2005 from microsoft. i have put sqljdbc.jar in the classpath as well as in jbuilder 2006 library. still i get the following error.
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at dbinfo.dbinfo.getConnection(dbinfo.java:27)
    at dbinfo.dbinfo.displayDbProperties(dbinfo.java:64)
    at dbinfo.dbinfo.main(dbinfo.java:150)
    Error Trace in getConnection() : com.microsoft.jdbc.sqlserver.SQLServerDriver
    Error: No active Connection
    what am i missing?

    i have the same problem can anyone help me in setting the classpath to the drivers. i am new to java plz help me
    thanks in advance

  • SQL Server Driver Class not found problem

    Hi,
    I've read several replies to similar topics but almost all the answers are: set your classpath because JVM can't find your .jar files containing those classes.
    I'm using Windows 2000 Pro and J2SDK1.4.1_01
    Ok, the problem is that I've set my CLASSPATH under environment variables (Windows 2000) as:
    .;C:\<INSTALLATION_PATH>\lib\msbase.jar;C:\<INSTALLATION_PATH>\lib\msutil.jar;C:\<INSTALLATION_PATH>\lib\mssqlserver.jar
    where INSTALLATION_PATH = Program Files\Microsoft SQL Server 2000 JDBC Drivers ... or the like.
    I've set this CLASSPATH under System variables and under User variables and still can't find the class I need.
    Is there any problem with CLASSPATH or Win2k or J2SDK1.4.1_01 ??
    Thanks in advance.

    I had to tar xf my .jar drivers into my project directory to work.
    now I have:
    C:\path\classes\*.class
    C:\path\classes\com\microsoft\jdbc... etc
    at least I got it to work.

  • Error : class not found exception : com.mysql.jdbc.driver in Eclipse Tool

    Hi
    I have impoted project file in eclipse in new machine using option import from existing workbence . When i stat to debug this project ,
    i am getting error as class not found exception : com.mysql.jdbc.driver . my project folder already consist of mysql .jar file in /web appls/web-inf folder.
    Application is running successfully in other machine from where i took the application file. As this error appeared I also added jar file into project path as Project ---->properties-- build java path---libraries----add external jar file.
    kindly hep me.

    Sounds like an eclipse question - not a JDBC one.
    But since eclipse is telling you it can't find it then it means it is not in the eclipse path. So you must add it. (The fact that it is somewhere is irrelevant - all that matters is it is not in the class path.)

  • Class Not found : oracle.jdbc.driver.OracleDriver when calling web service

    Hi,
    I have installed the Oracle Data Integrator Public Web Services on Apache Tomcat 5.5 application server with Apache Axis2
    When I try to call the web service OdiInvoke using the operation "listScenario" using only the JdbcDriver as input parameter, the response I get back from the web service call is:
    java.lang.ClassNotFoundException: Class Not found : oracle.jdbc.driver.OracleDriver
    Using the operator "getWebServiceVersion" I get a successfull response back som the connection seems fine.
    Obviously the error has to do with the driver not beeing available but where should I put the driver? Or how do I make it available? When working from Topology Manager, all connections are fine.
    Best regards
    M

    Solved it on my own by putting ojdbc14.jar in the following directory: <Apache-Tomcat install dir>/webapps/axis2/WEB-INF/lib/
    Thought I'd share in case some one else has same issue
    /M

  • Class Not Found: JDBC driver oracle.jdbc.driver.OracleDriver

    Does anyone can help?
    When I install the OpenBravo, I get the error shown below:
    Class Not Found: JDBC driver oracle.jdbc.driver.OracleDriver could not be loaded.
    I am using the Oracle XE, jdk1.5.0_06, Apache Tomcat 5.5.17.

    include the jar file classes111.jar in your classpath, it will work
    The location would be like
    C:\Applns\oracle9204\jdbc\lib\classes111.jar;
    set the classpath with this jar in command prompt
    set CLASSPATH=%CLASSPATH%;C:\Applns\oracle9204\jdbc\lib\classes111.jar;

  • Class Not Found: JDBC driver org.postgresql.Driver could not be loaded

    Hi
    I got the below message when i ran TORQUE
    Class Not Found: JDBC driver org.postgresql.Driver could not be loadedPlease let me know why this error arise.i have added the necessary postgresql.jar file in the classpath but still the error persist.
    Reply at the earliest.
    Thanks and Regards
    Gokul

    # The name of the project Torque will generate code for.
      torque.project = bookstore
      # The target database platform.
      torque.database = postgresql
      # The target package to put the generated classes in.
      torque.targetPackage = com.jp.bookstore
      # The JDBC URL that Torque can use to create and
      # drop databases if instructed to do so.
      torque.database.createUrl = jdbc:postgresql://192.168.0.10:5432/postgresql
      # The JDBC URL that will be used to create tables in your database.
      torque.database.buildUrl = jdbc:postgresql://192.168.0.10:5432/bookstore
      # The JDBC URL that will be used to access your database.
      torque.database.url = jdbc:postgresql://192.168.0.10:5432/bookstore
      # The JDBC database driver to use when connecting to your database.
      torque.database.driver = org.postgresql.Driver
      # The administrative username that has sufficient privileges to create
      # and drop databases and tables that Torque executes at generation time.
      torque.database.user = bjuser
      # The administrative password for the supplied username.
      torque.database.password = bjpass
      # The hostname or IP address of your database server.
      torque.database.host = 192.168.0.10

  • JDBC driver - Class oracle.jdbc.driver.OracleDriver not found.

    Greetings:
    When I tried to compile an test script (as attached below) to test the driver, I always ended up with the following error message:
    ....java:17: Class oracle.jdbc.driver.OracleDriver not found.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Could somebody shine some light on it? I would very much appreciate it.
    By the way, I have an Oracle DBMS (8.1.7) with jre1.1.7. My Java is jdk1.2 and the driver is ocijdbc8.dll
    Wil
    *************** The test script *************
    import java.sql.*;
    class Users
    public static void main (String args [])
    throws SQLException, ClassNotFoundException
    // Load the Oracle JDBC driver
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    // Connect to the database
    // You can put a database name after the @ sign in the connection URL.
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@US10", "QM24202E", "QM24202E");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    // Select ... table
    ResultSet rset = stmt.executeQuery ("select USERID from USERS");
    // Iterate through the result and print the ... names
    while (rset.next ())
    System.out.println (rset.getString (1));

    check out what thomas Fly wrote on another discussion forum about connection with JDBC, i tried it and i haven't gotten it
    to work yet but at least i don't have the "... not found" error,
    you should try it too, and i think it's good to tell you that i
    still haven't installed the oracle client on my windows Me PC.
    Hope this help you
    This may help also... I have Oracle installed on a Linux PC at 192.168.1.4 on my LAN, listening on port 1521. I can connect from another PC (Linux / Windows ME dual boot, though running Windows at the time of this experiment) using the following program:
    import java.sql.*;
    public class sqlLookup {
    public static void main(String[] args) throws SQLException, ClassNotFoundException {
    String dbUrl = "jdbc:oracle:thin:@192.168.1.4:1521:ORA8";
    String user = "thomasfly";
    String password = "maverick";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection c = DriverManager.getConnection(dbUrl, user, password);
    Statement s = c.createStatement();
    // SQL code:
    ResultSet r = s.executeQuery("select * from members");
    while(r.next()) {
    // Capitalization doesn't matter:
    System.out.println(r.getString("Name") + ", " + r.getString("id") + ": " + r.getString("email") );
    s.close(); // Also closes ResultSet
    I downloaded classes12.zip for Oracle 8.1.7 and put it into the C:\Windows directory, and mounted C:\Windows\classes12.zip in Forte for Java (equivalent to adding it to the classpath if I were running the program from a DOS window, rather than in Forte).
    ORA8... capitalization may be important... is the name of my database, which may be found in the tnsnames.ora file in $ORACLE_HOME/resources.
    The query gets the Name, id, and email fields from the table "members" in the database.
    This is just a barebones program, and each time it's run, the Oracle listener has to be stopped and restarted before the program can be successfully run again.

  • "Java Class not found in classpath" Error in DESIGNER

    Hello All,
    I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008.  As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files.  However, I still get the following error when I try and connect in Designer:  "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv".  Of course, this error includes the drive path with the location to my JAR files.  Any help in resolving this nagging issue is very GREATLY appreciated.  Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
    Thank you,
    Pankaj

    Stratos,
    Your suggestion didn't help.  I tried to connect after restarting my machine and I still get the error.  And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either.  Any other suggestions?  Would it help to see my "jdbc.sbo" file?  Thanks again for your and everyone else's help, and I look forward to your reply.
    Regards,
    Pankaj

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Class not found error while executing jar file

    I have written a java code in which i am connecting to database....when i run the class file using......java class_filename it works........
    but when i run the jar file using .......java -jar jar_name ...yi gives me the error as 'Class not found'......
    can anybody help me please......
    Thanks and Regards,
    Siddhesh

    that class is part of jar file.....in classpath i have included zip files for jdbc ...to get databse connection.....and the jar being executed ................still it gives the error ClassDefnotfound which i think is due to database connection problem.....the exception is raised while.....
    Class.ForName("Driver_name").newInstance();/ This driver is present in zip files that i have added in classpath....
    above statement doesn,t giv error while i execute the class file............but exception while executing jar file only..
    Thnaks and regards,
    siddhesh

Maybe you are looking for