Oralce 10G2 JDBC Driver - Error Loading oracle.jdbc.driver.OracleDriver

When attemping to use the 10G2 jdbc driver the following NoClassDefFoundError is encountered:
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: oracle.jdbc.driver.OracleDriver
<<No stacktrace available>>
Caused by: java.lang.ClassNotFoundException: oracle.security.pki.OracleWallet not found in [file:./, file:ojdbc1410g2.jar, file:/usr/share/java/libgcj-3.4.4.jar, file:./, core:/]
<<No stacktrace available>>
The error does not occur when reverting back to the 9 jdbc driver. Does anyone know what is causing this behavior?
Regards,
Paul

Paul,
Actually, class "oracle.jdbc.OracleDriver" extends class "oracle.jdbc.driver.OracleDriver".
So check the JAR files in the list displayed by your error message and see if any of them contain the [missing] class, for example:
jar tvf ojdbc1410g2.jar oracle/jdbc/driver/OracleDriver.classGood Luck,
Avi.

Similar Messages

  • JDBC Adapter Error - SAPClassNotFoundException: oracle.jdbc.driver.OracleDr

    Hi,
    I am trying to implement JDBC to File scenario.
    Trying to connect to Oracle Database. Oracle drivers are installed on XI server
    JDBC Adapter parameters:
    JDBC Driver  - oracle.jdbc.driver.OracleDriver
    Connection - jdbc:oracle:thin:@10.25.228.156:1521:databaseName=XE
    Error which I can see in Communication Channel Monitoring is:
    Error during database connection to the database URL 'jdbc:oracle:thin:@w4inpusyga6:1521:XE' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@w4inpusyga6:1521:XE': SAPClassNotFoundException: oracle.jdbc.driver.OracleDriver'
    All your inputs are welcome!
    Thanks
    Mugdha Kulkarni

    Hi
    we are integrating XI with IBM DB2 database.
    we have used 2 Jar files ( DB2jcc4.jar  & DB2jcc.jar ).
    but after deployment the jar file was deployed in different location, not in D:\usr\sap\XR3\DVEBMGS00\j2ee\cluster\server0\bin\ext\
    trying many times this deployment, we manually copy/paste
    our driver jar file to legitimate directory..
    Now the error has change as .UnsupportedClassVersionError: com/ibm/db2/jcc/DB2Driver (Unsupported major.minor version 50.0)
    Any one could through some light on it..
    Regards,
    Ashutosh
    Edited by: ashutosh rawat on Dec 5, 2009 4:48 AM

  • Help - Could not load 'oracle.jdbc.driver.OracleDriver ...

    I'm using oci8 to connect to the Oracle database.
    URL: jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(PORT=1527)(HOST=testhost)))(CONNECT_DATA=(SID=fnoe2pa)))
    When I tried to start the weblogic server, I got the following errors:
    Can you suggest what I should do next (step-wise)??? Thanks, Bobby
    <Sleeping in createResource()>
    ####<15/08/2002 14:09:43> <Error> <JDBC> <qawebmethods> <myserver>
    <main> <system> <> <001060> <Cannot startup connection pool
    "pool/test_myapp" weblogic.common.ResourceException:
    Could not load 'oracle.jdbc.driver.OracleDriver
    If this is a type-4 JDBC driver, it could occur if the JDBC
    driver is not in the system CLASSPATH.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system
    or in your PATH environment variable.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://e-docs.bea.com
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:212)
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:134)
         at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:705)
         at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282)
         at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:650)
         at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:360)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:285)
         at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:239)
         at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:199)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:360)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy31.updateDeployments(Unknown Source)
         at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2977)
         at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:372)
         at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:360)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy42.start(Unknown Source)
         at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)
         at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
         at weblogic.management.Admin.finish(Admin.java:644)
         at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
         at weblogic.Server.main(Server.java:35)
    >
    ####<15/08/2002 14:09:43> <Info> <JDBC> <qawebmethods> <myserver>
    <main> <system> <> <001082> <Creating Data Source named
    jdbc/test_myapp for pool pool/test_myapp>
    ####<15/08/2002 14:09:43> <Info> <JDBC> <qawebmethods> <myserver>
    <main> <system> <> <001070> <Checking existence of connection pool
    pool/test_myapp requested by user system>
    ####<15/08/2002 14:09:43> <Error> <JDBC> <qawebmethods> <myserver>
    <main> <system> <> <001059> <Error during Data Source creation:
    weblogic.common.ResourceException: DataSource(jdbc/test_myapp) can't
    be created with non-existent Pool (connection or multi)
    (pool/test_myapp)>
    ####<15/08/2002 14:09:50> <Info> <EJB> <qawebmethods> <myserver>
    <main> <system> <> <010008> <EJB Deploying file: myapp-ejb.jar>
    ####<15/08/2002 14:09:50> <Warning> <J2EE> <qawebmethods> <myserver>
    <main> <system> <> <160007> <You are running WebLogic Server with J2EE
    1.3 features enabled. The implementation of specific J2EE 1.3 features
    (EJB 2.0, JSP 1.2, Servlet 2.3, and J2EE Connector Architecture 1.0)
    in BEA WebLogic Server 6.1 is of a non-final version of the
    appropriate specification. It is subject to change in future releases
    once the specification becomes finalized. This may cause application
    code developed for BEA WebLogic Server 6.1 that uses the new features
    of J2EE 1.3 to be incompatible with the J2EE 1.3 platform supported in
    future releases of BEA WebLogic Server.>
    ####<15/08/2002 14:09:59> <Error> <J2EE> <qawebmethods> <myserver>
    <main> <system> <> <160001> <Error deploying application myapp-ejb:
    Unable to deploy EJB: Counter from myapp-ejb.jar:
    The DataSource with the JNDI name: jdbc/test_myapp could not be
    located. Please ensure that the DataSource has been deployed
    successfully and that the JNDI name in your EJB Deployment descriptor
    is correct.
    >
    ####<15/08/2002 14:09:59> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101053> <[HTTP myserver] Loading web app: myapp>
    ####<15/08/2002 14:09:59> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101059> <[myserver] Loading myapp from WAR file:
    C:\bea\wlserver6.1\.\config\mydomain\applications\.wlnotdelete\wlap31483\myapp.war>
    ####<15/08/2002 14:09:59> <Warning> <J2EE> <qawebmethods> <myserver>
    <main> <system> <> <160007> <You are running WebLogic Server with J2EE
    1.3 features enabled. The implementation of specific J2EE 1.3 features
    (EJB 2.0, JSP 1.2, Servlet 2.3, and J2EE Connector Architecture 1.0)
    in BEA WebLogic Server 6.1 is of a non-final version of the
    appropriate specification. It is subject to change in future releases
    once the specification becomes finalized. This may cause application
    code developed for BEA WebLogic Server 6.1 that uses the new features
    of J2EE 1.3 to be incompatible with the J2EE 1.3 platform supported in
    future releases of BEA WebLogic Server.>
    ####<15/08/2002 14:09:59> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101031>
    <[WebAppServletContext(1412030,myapp,/myapp)] extracting classfiles to
    C:\bea\wlserver6.1\config\mydomain\applications\.wlnotdelete\wlap31483\WEB-INF\_tmp_war_myapp:>
    ####<15/08/2002 14:10:04> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101032>
    <[WebAppServletContext(1412030,myapp,/myapp)] extracted classfiles
    successfully...>
    ####<15/08/2002 14:10:04> <Info> <HTTP Session> <qawebmethods>
    <myserver> <main> <system> <> <100037> <Creating SessionContext of
    type: memory for webapp: /myapp>
    ####<15/08/2002 14:10:04> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101047>
    <[WebAppServletContext(1412030,myapp,/myapp)] registering classpath
    servlet with initArgs 'null'>
    ####<15/08/2002 14:10:04> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101047>
    <[WebAppServletContext(1412030,myapp,/myapp)] registering getior
    servlet with initArgs 'null'>
    ####<15/08/2002 14:10:04> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101047>
    <[WebAppServletContext(1412030,myapp,/myapp)] registering tunneling
    servlets with initArgs 'wl-dispatch-policy=direct'>
    ####<15/08/2002 14:10:04> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101047>
    <[WebAppServletContext(1412030,myapp,/myapp)] registering JSPServlet
    with initArgs '[JspConfig:
    verbose=true,packagePrefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\bea\wlserver6.1\config\mydomain\applications\.wlnotdelete\wlap31483\WEB-INF\_tmp_war_myapp,pageCheckSeconds=1,superclass=null,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false]'>
    ####<15/08/2002 14:10:04> <Debug> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101097> <Registering ServletContext:
    "myapp:/myapp">
    ####<15/08/2002 14:10:04> <Info> <J2EE> <qawebmethods> <myserver>
    <main> <system> <> <160003> <Deployed : myapp>
    ####<15/08/2002 14:10:04> <Info> <HTTP> <qawebmethods> <myserver>
    <main> <system> <> <101133> <Initializing WEB server myserver>
    ####<15/08/2002 14:10:04> <Notice> <Management> <qawebmethods>
    <myserver> <main> <system> <> <141052> <Application Poller started for
    development server.>
    ####<15/08/2002 14:10:04> <Notice> <WebLogicServer> <qawebmethods>
    <myserver> <ListenThread> <system> <> <000202> <ListenThread listening
    on port 7001>
    ####<15/08/2002 14:10:04> <Info> <NT Performance Pack> <qawebmethods>
    <myserver> <ListenThread> <system> <> <000000> <NATIVE: NTSocketMuxer
    was built on Nov 1 2001 16:39:28
    >
    ####<15/08/2002 14:10:04> <Notice> <WebLogicServer> <qawebmethods>
    <myserver> <SSLListenThread> <system> <> <000202> <SSLListenThread
    listening on port 7002>
    ####<15/08/2002 14:10:05> <Notice> <Management> <qawebmethods>
    <myserver> <main> <system> <> <141030> <Starting discovery of Managed
    Server... This feature is on by default, you may turn this off by
    passing -Dweblogic.management.discover=false>
    ####<15/08/2002 14:10:05> <Notice> <WebLogicServer> <qawebmethods>
    <myserver> <main> <system> <> <000331> <Started WebLogic Admin Server
    "myserver" for domain "mydomain" running in Development Mode>
    ####<15/08/2002 14:10:11> <Info> <NT Performance Pack> <qawebmethods>
    <myserver> <ExecuteThread: '14' for queue: 'default'> <> <> <000000>
    <Allocating: '2' NT reader threads>
    ####<15/08/2002 14:10:13> <Info> <HTTP> <qawebmethods> <myserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(5367844,console,/console)] actions:
    init>
    ####<15/08/2002 14:10:18> <Info> <HTTP> <qawebmethods> <myserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(5367844,console,/console)]
    FileServlet: init>
    ####<15/08/2002 14:10:18> <Info> <HTTP> <qawebmethods> <myserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(5367844,console,/console)]
    FileServlet: Using standard I/O>

    "thorick" <[email protected]> wrote in message news:<[email protected]>...
    Most likely, the OCI libraries could not be loaded.
    Before continuing down this path, is there any reason
    why you want to use an OCI based Driver as opposed to the
    all Java Oracle thin driver ?There is indeed a valid reason for my choice.
    I am currently connecting to the Oracle "Rdb" 7.0 database (located on
    VMS) - not Oracle Oracle.
    The SQL Service software we're currently using is version 7.1. This
    version works well with the OCI8 driver (when connecting to the
    database from Windows NT). This version of SQL Service however does
    NOT work for the THIN driver (unless we upgrade the SQL Service to
    version 7.1.5.5 - which we're not prepared to do so because it is not
    stable enough from our previous test/trials). SQLSRV Version 7.1.5.5
    works for THIN driver but it will result in uncommitted
    transactions/unresolved connection/stopping of listener issues and
    there is a need to restart the service from time to time. Oracle has
    since confirmed that this is a bug that they have yet to resolve...
    So we have to stick to OCI8 (THICK) for the time being. I would really
    appreciate it very much if you can tell me the various OCI libraries
    that I need to load (in terms of WebLogic Server config file settings
    etc..).
    By the way I have already installed the Oracle 8 client software on
    the NT server (where WebLogic Server is) and I have also set up the
    relevant SID (using the Net8 Assistant) that points to the Oracle Rdb
    database on the VMS. I have also tried using SQL*Plus to connect to
    the database and I can connect properly to the database. But WebLogic
    simply doesn't seem to load the software.
    Help...
    Regards,
    Bobby Brown, writing from Australia.

  • Load Oracle JDBC Driver by reflection.

    Hi!
    I'm trying to load driver by reflection like this,
    try {
      URL ora8libURL = new URL("file:///C:/oracle/product/10.2.0/clientDev/jdbc/lib/classes12.jar");
      Class.forName("oracle.jdbc.OracleDriver", true, URLClassLoader.newInstance(new URL[]{ora8libURL}));
        Enumeration<Driver> drivers = DriverManager.getDrivers();
        while(drivers.hasMoreElements())
          Driver drv = drivers.nextElement();
          System.out.println(drv.getClass().getName());
      conn = DriverManager.getConnection("jdbc:oracle:thin:@//192.168.186.13:1521/rdb817","user","password");
    catch(ClassNotFoundException ex) {ex.printStackTrace();}
    catch(MalformedURLException ex) {ex.printStackTrace();}
    catch (SQLException ex) {ex.printStackTrace();}but i've got this error:
    sun.jdbc.odbc.JdbcOdbcDriver
    java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@//192.168.186.13:1521/rdb817
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
    ...However, when i specify driver explicit in classpath it works fine.
    Help.

    I had the same problem you have, until i read your post :-).
    Now, with your help, i found a solution.
    The problem with your code is that the DriverManager that you are using doesn't "see" the driver you are loading. But you can create the driver instance directly:
    * Testes.java
    * Created on 31 de Julho de 2007, 15:04
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    import java.sql.*;
    import java.net.*;
    import java.util.*;
    * @author paulo
    public class Testes {
        /** Creates a new instance of Testes */
        public Testes() {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
            String dbUrl10_1 = "jdbc:oracle:thin:@(DESCRIPTION="
                            + "(ADDRESS_LIST="
                            + "     (ADDRESS="
                            + "          (PROTOCOL=TCP)"
                            + "          (HOST=ffcluster01-vip)"
                            + "          (PORT=1521)"
                            + "     )"
                            + "     (ADDRESS="
                            + "          (PROTOCOL=TCP)"
                            + "          (HOST=ffcluster02-vip)"
                            + "          (PORT=1521)"
                            + "     )"
                            + "     (LOAD_BALANCE=yes)"
                            + ")"
                            + "(CONNECT_DATA="
                            + "     (SERVICE_NAME=bh.hdff.pt)"
                            + "     (FAILOVER_MODE ="
                            + "          (TYPE = SELECT)"
                            + "          (METHOD = BASIC)"
                            + "          (RETRIES = 180)"
                            + "          (DELAY = 5)"
                            + "     )"
                            + ")"
                            + ")";
            String dbUrl10_2 = "jdbc:oracle:thin:@ffcluster01:1521:BH1";
            String dbUrl7 = "jdbc:oracle:thin:@7.30.5.1:1521:HFF";
            try {
                 //Class.forName("oracle.jdbc.OracleDriver");
                URL ora7libURL = new URL("file:///C:\\PAULO\\aplicacoes\\ojdbc14.jar");
                URL ora10libURL = new URL("file:///C:\\PAULO\\aplicacoes\\ojdbc14_10g.jar");
                Driver drv10 = (Driver)(Class.forName("oracle.jdbc.OracleDriver", true, URLClassLoader.newInstance(new URL[]{ora10libURL}))).newInstance();
                System.out.println("Versao 10: "+drv10.getMajorVersion()+"."+drv10.getMinorVersion()+"\n");
                Driver drv7 = (Driver)(Class.forName("oracle.jdbc.OracleDriver", true, URLClassLoader.newInstance(new URL[]{ora7libURL}))).newInstance();
                System.out.println("Versao 7: "+drv7.getMajorVersion()+"."+drv7.getMinorVersion()+"\n");
                Enumeration drivers = DriverManager.getDrivers();
                while(drivers.hasMoreElements()) {
                    Driver drv = (Driver)drivers.nextElement();
                    System.out.println(drv.getClass().getName());
                    System.out.println("Versao: "+drv.getMajorVersion()+"."+drv.getMinorVersion()+"\n");
                System.out.flush();
                Properties prt = new Properties();
                prt.setProperty("user", "****");
                prt.setProperty("password", "*****");
                Connection conn = drv10.connect(dbUrl10_1,prt);
                conn.close();
                prt = new Properties();
                prt.setProperty("user", "****");
                prt.setProperty("password", "****");
                conn = drv7.connect(dbUrl7,prt);
                conn.close();
            } catch(ClassNotFoundException ex) {
                ex.printStackTrace();
            } catch(MalformedURLException ex) {
                ex.printStackTrace();
            } catch(SQLException ex) {
                ex.printStackTrace();
            } catch(Exception ex) {
                ex.printStackTrace();
    }Has you can see, the DriverManager doesn't know about the divers loaded with the new ClassLoader.
    The only thing you have to pay attention is not to have the classes for "oracle.jdbc.OracleDriver" in your system classpath.

  • "Error loading native JDBC driver library" received when connecting to a DB

    I recently installed 10g client onto my PC. After installation I now recieve an "Error loading native JDBC driver library" error when attempting to connect to a database.
    This is a dual core Dell loaded with XP sp 2. I am attempting to connect to a 10gR2 instance. I tried the solution mentioned in another post to no avail. I am using SQL Developer v 1.2.1 build main-32.13.

    Hi,
    I found this thread from googling and am having the same problem for four days now...
    For those who can get SQL Developer to work, could you please detail what properties you have in your installation? Could you please describe what we are supposed to see in the SQL Developer Properties tab? I found this tab in Help>About>Properties but have no idea where SQL Developer picks up those attributes. And it does not seem we can change any of them within SQL Developer. How frustrating!
    Even more frustrating is that I am able to access the database I want to connect to with SQL Plus (right click on the connect node in SQL Developer)...
    Thanks,
    Clueless

  • Win2000+weblogic510+oracle8i,Could not load 'oracle.jdbc.driver.OracleDriver'

    &#26143;&#26399;&#22235; &#19977;&#26376; 23 20:30:17 GMT+08:00 2000:<E> <JDBC Pool>
    Failed to create connection pool "ejavaPool"
    weblogic.common.ResourceException: Could not load 'oracle.jdbc.driver.OracleDriver'
    because
    System.loadLibrary threw java.lang.UnsatisfiedLinkError
    with the message 'oracle.jdbc.driver.OracleDriver'.
    This could occur if the JDBC driver is not in the weblogic.class.path.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system or in your environment.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://www.weblogic.com/docs/install/install_jdbc.html
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:82)
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:97)
         at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:328)
         at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java, Compiled Code)
         at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:220)
         at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
         at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled Code)
         at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    any idea?

    If you are trying to use the thin driver you need to make sure you have the
    classes12.zip file in the weblogic server classpath. You can download this
    driver from Oracle website.
    hth
    sree
    "meijunyong" <[email protected]> wrote in message
    news:[email protected]...
    >
    &#26143;&#26399;&#22235; &#19977;&#26376; 23 20:30:17 GMT+08:00 2000:<E><JDBC Pool>
    Failed to create connection pool "ejavaPool"
    weblogic.common.ResourceException: Could not load'oracle.jdbc.driver.OracleDriver'
    because
    System.loadLibrary threw java.lang.UnsatisfiedLinkError
    with the message 'oracle.jdbc.driver.OracleDriver'.
    This could occur if the JDBC driver is not in the weblogic.class.path.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system or in your environment.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://www.weblogic.com/docs/install/install_jdbc.html
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
    actory.java:82)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
    ry.java:97)
    atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:328
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:220)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, CompiledCode)
    atweblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    any idea?

  • A sign Applet unable to load "oracle.jdbc.OracleDriver" class

    hi,
    i am chiranjit , i am now working in a web based ERP. where i am using a signed applet which unable to load "oracle.jdbc.OracleDriver" class but it easily loading "sun.jdbc.odbc.JdbcOdbcDriver", i am also giving my code:
    import java.sql.*;
    import java.math.*;
    import java.io.*;
    import java.awt.*;
    class JdbcTest extends Applet{
    public static void main (String args[]) throws SQLException {
    // Load Oracle driver
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    // Connect to the local database
    Connection conn =
    DriverManager.getConnection
    ("jdbc:oracle:thin:@192.168.16.7:1521:kris",
    "plsql", "oracle");
    // Query the employee names
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT FIRST_NAME FROM
    AUTHORS");
    // Print the name out
    while (rset.next ())
    System.out.println (rset.getString (1));
    // Close the result set, statement, and the connection
    rset.close();
    stmt.close();
    conn.close();
    }

    Hint: The sun.jdbc.odbc.JdbcOdbcDriver is available in any JRE distribution. The Oracle driver is not.

  • Can not load oracle db driver

    After load the following code and I got an error message"can not load oracle db driver"
    can you help me? thanks
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class DBPhoneLookup extends HttpServlet {
      public void doGet(HttpServletRequest req, HttpServletResponse res)
                                   throws ServletException, IOException {
        Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
        res.setContentType("text/html");
        PrintWriter out = res.getWriter();
        try {
          // Load (and therefore register) the Oracle Driver
          Class.forName("oracle.jdbc.driver.OracleDriver");
          // Get a Connection to the database
          con = DriverManager.getConnection(
            "jdbc:oracle:thin:@dbhost:1528:ORCL", "user", "passwd");
          // Create a Statement object
          stmt = con.createStatement();
          // Execute an SQL query, get a ResultSet
          rs = stmt.executeQuery("SELECT NAME, PHONE FROM EMPLOYEES");
          // Display the result set as a list
          out.println("<HTML><HEAD><TITLE>Phonebook</TITLE></HEAD>");
          out.println("<BODY>");
          out.println("<UL>");
          while(rs.next()) {
            out.println("<LI>" + rs.getString("name") + " " + rs.getString("phone")); 
          out.println("</UL>");
          out.println("</BODY></HTML>");
        catch(ClassNotFoundException e) {
          out.println("Couldn't load database driver: " + e.getMessage());
        catch(SQLException e) {
          out.println("SQLException caught: " + e.getMessage());
        finally {
          // Always close the database connection.
          try {
            if (con != null) con.close();
          catch (SQLException ignored) { }
    }

    Hi ,
    In first look it seems a classpath problem. Means that your DB driver is not in the current class path .
    But if it is not that the try to find the exact exception for that use exception's printstacktrace() and get the exception message . So in the following block of of code put e.printstacktrace()
    catch(ClassNotFoundException e) {
    out.println("Couldn't load database driver: " + e.getMessage());
    }

  • ORA-24816 error with oracle 10 driver

    Friends,
    I am getting the following error with Oracle 10 driver while trying to insert data > 4k into a LONG column. The table also contains another column of type varchar2(4000). The code works perfectly fine with Oracle 9i driver.
    ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
    Kindly let me know if this is a programming error or a driver problem.
    Thanks,
    Vinay

    this driver you mentioned, is it the jdbc driver?
    ORA-24816:     Expanded non LONG bind data supplied after actual LONG or LOB column
    Cause:     A Bind value of length potentially > 4000 bytes follows binding for LOB or LONG.
    Action:     Re-order the binds so that the LONG bind or LOB binds are all at the end of the bind list.
    using this forum may be more efficient -> http://forums.oracle.com/forums/forum.jspa?forumID=99&start=0

  • Due to flash drive error on MBA my drive was wiped yesterday and OS re installed.  How to I get my bookmarks still on my iPhone back onto the mba

    Due to flash drive error on MBA my drive was wiped yesterday and OS re installed.  How to I get my bookmarks still on my iPhone back onto the mba

    Hi Nathanbeyondme!
    I have an article that can help you with that question:
    OS X Mountain Lion: Store your content in iCloud
    http://support.apple.com/kb/PH11421
    Safari bookmarks and tabs
    iCloud keeps your bookmarks and Reading List the same in Safari on your Mac, iPhone, iPad, and iPod touch. On your Mac, Safari also uses iCloud to let you open tabs that are open on your other devices. You set up the Safari service in iCloud preferences.
    If you are having issues with syncing these bookmarks, you will want to reference the following article:
    iCloud: Troubleshooting iCloud Bookmarks and Reading List
    http://support.apple.com/kb/ts4001
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • Load oracle jdbc driver error when run applet via the web

    Hi All,
    I have built an applet which connect to database via jdbc thin driver. It works fine when I run it through the applet viewer, but got a problem when run it through the web.
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    I am using jdev9i 9.0.4 and jdk 1.4.2. The jdbc version is 9.0.1
    I have added both the classes12.zip and ojdbc14.zip in the class path and also pack them together with my applet class. Here is the code
    public class MyApplet extends Applet
    implements Runnable
    public void start()
    if(theThread == null)
    theThread = new Thread(this);
    theThread.start();
    Retrieve R = new Retrieve();
    this.MyMap = R.retrieveDesc();
    public class Retrieve
    public Retrieve()
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn=DriverManager.getConnection("jdbc:oracle:thin:@babyruth.wvu.edu:1703:devdw", User, Password);
    conn.setAutoCommit(true);
    connectStatus = true;
    public HashMap retrieveDesc()
    return map;
    I have also built one HTML page NewApplet like this
    <HTML>
    <HEAD>
    <TITLE> My New Applet</TITLE>
    </HEAD>
    <APPLET CODE="MyApplet.class" CODEBASE="menu" ARCHIVE="MyApplet.zip" WIDTH=300 HEIGHT=485>
    <!--General Settings-->
    <param name="bgcolor" value="255,255,255">
    </HTML>
    Any advice is highly appreciated
    Mei

    Sir,
    Well you haven't "packed" them correctly. Why don't you just add the driver bits to the soucebase tag? or something like that anyway...
    Sincerely,
    Slappy

  • Unable to load oracle.jdbc.driver.OracleDriver class

    i want to connect my java application with oracle database but i m getting an error -"class not found exception oracle.jdbc.driver.OracleDriver " which is written in Class.forName() to register the driver for DriverManager.
    plz help me..

    This is an old class, not included with the JDK anymore. It was made obsolete by
    DataSource which is a connection pool and not a single connection.

  • Steps to load Oracle JDBC Thin driver onto Tomcat

    I have Oracle JDBC working with thin driver on my local Tomcat container and now need to put it on a server but forgot how I set it up and want to make sure I do it correctly when I put it on the server.
    Please advise if this is correct?
    1- Load the thin driver (ojdbc14.jar ) in Tomcat 4.1.27 Container into the common/lib directory
    2- Set the classpath on the Windows server to allow me to use the ojdbc14.jar driver?
    If so then I need to do this using Windows DOS where I add the thin driver to my Classpath?
    Set CLASSPATH=%CLASSPATH%;C:\TomcatHome\common\lib\servlet-api.jar;C:\TomcatHome\common\lib\ojdbc14.jar
    Or do I NOT need to set the classpath and just restart the Tomcat container??

    Thanks,
    I loaded the ojdbc14.jar file in common/lib and restarted the container and I can now connect to Oracle.
    What you mean by not needing ojdbc14 for compilation and it would be better to use a build tool[b] to do what?

  • EJB - no suitable driver found for oracle jdbc driver

    this is the exception i got when i run the client:
    java.rmi.RemoteException: nested exception is: java.sql.SQLException: No suitable driver; nested exception is:
    java.sql.SQLException: No suitable driver
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:537)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:45)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:177)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:56)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:66)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:177)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:126)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:137)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:74)
    at bmp.TaxEJB.ejbCreate(TaxEJB.java:34)
    at bmp.TaxEJB_RemoteHomeImpl.create(TaxEJB_RemoteHomeImpl.java:32)
    at bmp._TaxEJB_RemoteHomeImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:520)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:210)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:112)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
    at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    this is the implementation file (TaxEJB):
    package bmp;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import java.util.*;
    import javax.ejb.*;
    public class TaxEJB implements EntityBean {
    private String stateCode;
    private float taxRate;
    private EntityContext ctx;
    private DataSource ds;
    private String dbName = "jdbc/Oracle";
    private Connection con;
    public void setTaxRate(float taxRate) {
    this.taxRate = taxRate;
    public float getTaxRate() {
    return this.taxRate;
    public String ejbCreate(String stateCode, float taxRate)
    throws CreateException {
    if (stateCode == null) {
    throw new CreateException("The State Code is required.");
    try {
    String sqlStmt = "INSERT INTO TaxTable VALUES ( ? , ? )";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, stateCode);
    stmt.setFloat(2, taxRate);
    stmt.executeUpdate();
    stmt.close();
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    this.stateCode = stateCode;
    this.taxRate = taxRate;
    return stateCode;
    public void ejbPostCreate(String stateCode, float taxRate) {}
    public void setEntityContext(EntityContext context) {
    this.ctx = context;
    try {
    InitialContext initial = new InitialContext();
    ds = (DataSource)initial.lookup(dbName);
    } catch (NamingException ne) {
    throw new EJBException(ne);
    public void unsetEntityContext() {
    ctx = null;
    public void ejbActivate() {
    stateCode = (String)ctx.getPrimaryKey();
    public void ejbPassivate() {
    stateCode = null;
    public void ejbLoad() {
    try {
    String sqlStmt = "SELECT stateCode, taxRate FROM TaxTable " +
    "WHERE stateCode = ? ";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, stateCode);
    ResultSet rs = stmt.executeQuery();
    if (rs.next()) {
    this.taxRate = rs.getFloat("taxRate");
    stmt.close();
    } else {
    stmt.close();
    throw new NoSuchEntityException("State Code: " + stateCode);
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public void ejbStore() {
    try {
    String sqlStmt = "UPDATE TaxTable SET "
    + "taxRate = ? " + "WHERE stateCode = ?";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setFloat(1, taxRate);
    stmt.setString(2, stateCode);
    if (stmt.executeUpdate() != 1) {
    throw new EJBException("Object state could not be saved");
    stmt.close();
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public void ejbRemove() {
    try {
    String sqlStmt = "DELETE FROM TaxTable WHERE stateCode = ? ";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, stateCode);
    stmt.executeUpdate();
    stmt.close();
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public String ejbFindByPrimaryKey(String primaryKey)
    throws FinderException {
    try {
    String sqlStmt = "SELECT stateCode "
    + "FROM TaxTable WHERE stateCode = ? ";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, primaryKey);
    ResultSet rs = stmt.executeQuery();
    if (!rs.next()) {
    throw new ObjectNotFoundException();
    rs.close();
    stmt.close();
    return primaryKey;
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public Collection ejbFindInRange(float lowerLimit, float upperLimit)
    throws FinderException {
    try {
    String sqlStmt = "SELECT stateCode from TaxTable "
    + "WHERE taxRate BETWEEN ? AND ?";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setFloat(1, lowerLimit);
    stmt.setFloat(2, upperLimit);
    ResultSet rs = stmt.executeQuery();
    ArrayList list = new ArrayList();
    while (rs.next()) {
    String id = rs.getString(1);
    list.add(id);
    stmt.close();
    return list;
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    this is the setting in resource.properties:
    jdbcDataSource.5.name=jdbc/Oracle
    jdbcDataSource.5.url=jdbc\:oracle\:thin\:@nicole\:1521\:NICOLE
    jdbcDriver.1.name=oracle.jdbc.driver.OracleDriver
    this is my classpath setting:
    %J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%J2EE_HOME%\lib\system\classes12.jar;.
    since i already declare classpath for oracle JDBC Driver (classes12.jar), why the program still can't found the oracle.jdbc.driver.OracleDriver? please help. thanks.

    Hi,
    I m trying to connect ORACLE9i using JSP.But i encounter the error java.sql.SQlException no suitable driver found.My code is as follows.
    <html>
    <head><title>oracle</title></head>
    <body>
    <%@ page language="java"%>
    <%@ page import="java.sql.*" %>
    <%
    String eid=new String();
    String en=new String();
    try
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException cnfe)
         out.println("Failed to load Jdbc Odbc driver");
    try{
    Connection con = DriverManager.getConnection("jdbc:oracle:thin@localhost:1521:ORACLE9I","scott","tiger");
    Statement ps = con.createStatement();
    try{
    ResultSet rs = ps.executeQuery("select * from empDetails");
    while(rs.next())
         out.println(rs.getString(1));
         out.println(rs.getString(2));
    rs.close();
    }catch(SQLException se)
    out.println(se);
    ps.close();
    con.close();
    catch(Exception e)
         out.println(e);
    catch (Exception e){
    out.println(e);
    %>
    </body></html>
    Pls anyone give me a solution.Its really urgent.

  • Web Logic 6.1 JDBC Pooling with the Oracle Thin Driver

    Hi,
    We're slowly getting through a WebLogic 4.5.1 to 6.1 conversion for a small application
    at my company. Initially, we had trouble getting the Oracle thin driver working.
    We've finally cracked this nut. Now we're trying to get pooling working, and
    cannot find an example of doing this with the Oracle thin driver.
    Would anyone be able to provide:
    1. the portion of the config.xml that pertains to building a connection pool using
    the Oracle thin driver
    2. the two lines of code for loading the driver and getting a connection from
    this pool
    i.e.
    Driver d = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Connection c = d.connect("jdbc:weblogic:pool:myPool", null);
    Thanks very much!
    Jeff Ryan
    The Hartford

    "Jeff Ryan" <[email protected]> wrote:
    >
    1. the portion of the config.xml that pertains to building a connection
    pool using
    the Oracle thin driver
    You don't usually edit the config.xml unless it is absolutely necessar. Instead,
    you can config the pool in the GUI admin console, quite easily. After you successfully
    configed the pool in the console, it is written into the config.xml file for you.
    Only thing special when config the pool is the name of the driver and the url.
    url: jdbc:oracle:thin@dbhost:dbport:dbinstance
    driver: oracle.jdbc.driver.OracleDriver
    If you prefer, you can also config the pool from the command line. It is detailed
    in the "Weblogic Server Command-line Interface Reference".
    2. the two lines of code for loading the driver and getting a connection
    from
    this pool
    i.e.
    Driver d = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Connection c = d.connect("jdbc:weblogic:pool:myPool", null);
    Again, you don't use the connection directly. Instead, you use "Data Source".
    Data source in weblogic is just a connection object factory associated with a
    JNDI name. You can therefore lookup the data source with the JNDI name and from
    the data source object, you get the connectin object. No need to explicitly load
    the driver class.
    There are plenty of example codes available in the weblogic examples installed
    with 6.1, that uses the data source.
    Charles

Maybe you are looking for

  • Can you split an iTunes account into two separate iTunes accounts?

    My son and I have shared my iTunes account since he was in junior high. We have both added to it over the years, amassing a huge library.  My son has now left home and joined the military.  At this point we want separate accounts - so we can pay sepa

  • SAP XI BPM Performance and statistics

    Hello all, I am currently working on an integration using the BPM process within XI.  During our initial testing, we noticed that, when it comes to the BPM process, XI takes too long to process a message.  The actual size of the payload is really sma

  • Transaction roll back exception

    I am getting a transaction rollback exception during a long running query. running WL 5.1 and dont think I can use the trans-timeout-seconds in the transaction-descriptor section of the weblogic-ejb-jar descriptor file. Can anyone advise on if there

  • Best process for scoring my movie?

    Will I loose quality if I import my project to Garageband for the scoring and then use the output from Garageband (incl. video) for iDVD? I choose to remove the video and the video sound once I had done the scoring and then export it as an audio file

  • Can you smooth out a brush stroke?

    I am using an animated brush stroke to provide the Indiana Jones look on top of a picture of a google map for a trip I took. I can draw the brush stroke and set a key frame on the "end" attribute so that it paints on the stroke, but the stroke is not