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

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.

  • 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.

  • Oracle/sql/Datum Class not found

    Dear All ,
    I am very new in Oracle SQL XML utility.
    I am trying to run(gx.java) the following code, I am getting the following error :
    ============
    Error:
    java.lang.NoClassDefFoundError: oracle/sql/Datum
    at oracle.xml.sql.query.OracleXMLQuery.<init>(OracleXMLQuery.java:126)
    at gx.main(gx.java:41)
    Exception in thread "main"
    =============
    Can any one help me.
    Thanks & Regards
    Subrata SEN
    Source Code:
    ============
    import java.awt.*;
    import oracle.xml.sql.query.*;
    import java.sql.*;
    import java.net.*;
    import java.awt.*;
    import connection.connect;
    public class gx
    public static void main(String args[])
    String tabName = "emp";
    String user = "scott/tiger";
    Connection conn = null;
    connect initCon = new connect();
    OracleXMLQuery qry = null;
    try
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // conn = DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
    conn = initCon.setConnection( "scott", "tiger" );
    if( conn == null )
    System.out.println( " Connection failed ........returning" );
    return;
    catch(Exception dce)
    System.out.println( " Failure : " + dce);
    try
    System.out.println( " 1." );
    qry = new OracleXMLQuery( conn, "select empno, ename from emp" );
    System.out.println( " 2." );
    qry.setMaxRows(2);
    qry.setRowsetTag( "ROOTDOC" );
    qry.setRowTag( "DBROW" );
    qry.setStyleSheet( "emp.xsl" );
    String xmlString = qry.getXMLString();
    System.out.println( "OUTPUT : \n" + xmlString );
    catch(Exception eQry)
    System.out.println( " Exception QRY : " + eQry );
    System.out.println( "Program initialized....." );
    =================

    While the XML SQL Utility does not require the Oracle JDBC driver, it must have the Oracle JDBC driver in the CLASSPATH.

  • 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.

  • 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.

  • 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.

  • 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

  • Class oracle.xml.sql.query.OracleXMLQuery not found in import

    I tried to perform load java using a non-sys user :
    loadjava -user user1/passwd -v -o -r Archive.java
    but encountered the following error:
    Errors in Archive:
    ORA-29535: source requires recompilation
    Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
    Info: 1 errors
    loadjava: 3 errors
    But if I use sys user I don't have any error:
    loadjava -user sys/manager -v -o -r Arachive.java
    initialization complete
    loading : Archive
    creating : Archive
    resolver :
    resolving: Archive
    Why is this so?
    ANy security setup that I missed?
    Thanks in advance.
    Note:
    my Archive.java file contains:
    // Core Java Classes
    import java.io.*;
    import java.sql.*;
    // Oracle Java classes
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Azman Diron ([email protected]):
    I tried to perform load java using a non-sys user :
    loadjava -user user1/passwd -v -o -r Archive.java
    but encountered the following error:
    Errors in Archive:
    ORA-29535: source requires recompilation
    Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
    Info: 1 errors
    loadjava: 3 errors
    But if I use sys user I don't have any error:
    loadjava -user sys/manager -v -o -r Arachive.java
    initialization complete
    loading : Archive
    creating : Archive
    resolver :
    resolving: Archive
    Why is this so?
    ANy security setup that I missed?
    Thanks in advance.
    Note:
    my Archive.java file contains:
    // Core Java Classes
    import java.io.*;
    import java.sql.*;
    // Oracle Java classes
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    <HR></BLOCKQUOTE>
    Managed to solve this problem.
    Drop all xml objects owned by sys and user1.
    Reload xml objcets for user1 with -force option.
    null

  • Error oracle.sql.* and oracle.jdbc.driver.* not found when using oracle as a database

    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama

    Hi Anupama,
    First of all I would be surprised if you would not like to use the connection pooling feature of weblogic (in which case you might not be needing the import the classes directly), and would like to open direct connections to your database. Anyways for doing that I would recommend you to check out the readme doc that ships
    along with the jdbc oracle (classes12.zip etc). I am giving an excerpt over here:
    These are a few simple things that you should do in your JDBC program:
    1. Import the necessary JDBC classes in your programs that use JDBC.
    For example:
    import java.sql.*;
    import java.math.*;
    2. Register the Oracle driver before before calling other JDBC APIs.
    (This is not needed if you are using the JDBC Server-side Internal
    Driver because registration is done automatically in the server.)
    To register the Oracle driver, make sure the following statement
    is executed at least once in your Java session:
    DriverManager.registerDriver(
    new oracle.jdbc.driver.OracleDriver());
    3. Open a connection to the database with the getConnection call.
    Different connection URLs should be used for different JDBC
    drivers. The following examples demonstrate the different URLs.
    For the JDBC OCI8 Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:oci8:@<database>",
    "scott", "tiger");
    where <database> is either an entry in tnsnames.ora or a SQL*net
    name-value pair.
    For the JDBC Thin Driver, or Server-side Thin Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@<database>",
    "scott", "tiger");
    where <database> is either a string of the form
    <host>:<port>:<sid> or a SQL*net name-value pair.
    For the JDBC Server-side Internal Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:kprb:");
    Note that the trailing ':' character is necessary. When you use
    the Server-side Internal Driver, you always connect to the
    database you are executing in. You can also do this:
    Connection conn
    = new oracle.jdbc.driver.OracleDriver().defaultConnection();
    Hope this helps,
    Thanks,
    Anupama wrote:
    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama--
    Apurb Kumar

  • 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.

  • 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

Maybe you are looking for

  • New Depreciation Area - AFBN

    Dear Experts, My user has given a new scenario where we have to calculate tax depreciation for assets transferred from US books to SG books. When the transfers were executed, the tax depreciation area was not set up in the SG books' Chart of Deprecia

  • Considering replacing my iPod

    So currently, I have a 30 GB 5th generation iPod video. I got it from my parents for christmas in 2006 and I still use it to this day. Everything works fine except the battery. It doesn't really last past 5 hours, and that is only with just audio. An

  • Position of Parameter in BIP Report

    Hi, I have created some parameters.Those are automatically showed on the Report View page by default at some postions.What I need is to adjust the parameters on the screen at my convinient postions. Can anybody help? Thanks & Regards, Ajay

  • I get this error when submitting the issue to DPS

    Hi am using Woodwing Enterprise to publish folios to the Adobe DPS and it has been okay, I have finished creating of a new issue and I get this error when submitting the issue to DPS : Adobe Distibution Server returned error while calling "createIssu

  • Mail App Crashes A Few Seconds After Launch after 10.9.2 Update

    Has any body had similar issues or success fixing this?  The app is basically non-responsive for 2 or 3 seconds and then dies. Here's the crash log: Process:         Mail [758] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier: