Why am I getting an UnsatisfiedLinkError?

Discussions

General J2EE: Why am I getting an UnsatisfiedLinkError?

  1. Why am I getting an UnsatisfiedLinkError? (3 messages)

    i am using weblogic7 installed at d:/bea and oracle 9i at
    d:/ora91.operating system is windows2000 professional
    I get an UnsatisfiedLinkError when I try to use the
    weblogic jdriver to connect with oracle

    Here is the stock trace:
    java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError with the message "no weblogicoci38 in shared library path."


             at weblogic.jdbcbase.oci.Driver.connect(Driver.java:115)
             at java.sql.DriverManager.getConnection(Compiled Code)
         
    also if i use java utils.dbping to test the connection
    this error comes noclassdeffounderror:utils.dbping

    suggest ways to use the jdriver to connect to oracle9i
    also suggest how to use java utils.dbping to test whether
    the connection is successful.

    Threaded Messages (3)

  2. You are using native driver[ Go to top ]

    HI It seems you are using native driver of oracle it needs the dll to be kept in weblogic bin.

    Try to use type 4driver you will never get this message
  3. thanks for sending in the reply,but i need some more details

    i am using the weblogic jdriver that comes with weblogic7,and not the native oracle driver.the problem is
    that i have to make the path settings right.do you have
    any idea as to how these settings should be done.
    there is this dll file weblogicoci38.dll in the directory
    as given
    d:\bea\weblogic700\server\bin\weblogicoci38.dll.
    how to get this dll in the path name is the question.
    i have installed jdk1.3 also at d:\jdk1.3 and oracle9i at
    d:\ora91.

    also i would like to know how to use the java uils.dbping
    facility provided by weblogic to test whether the connection
    to the oracle database is successful or not.
  4. DataSource[ Go to top ]

    What is the driver you are using in the DataSource.
    oracle.jdbc.driver.OracleDriver never looks for a dll.

    Weblogic ships the native driver of Oracle too.
    Make sure you are using oracle.jdbc.driver.OracleDriver driver or its equivalent XA driver for XAPool

     <JDBCConnectionPool CapacityIncrement="2"
            DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="4"
            LoginDelaySeconds="1" MaxCapacity="10" Name="oraclePool"
            PasswordEncrypted="{3DES}SmW5syZNLnI=" Properties="user=SCOTT"
            RefreshMinutes="10" ShrinkPeriodMinutes="15"
            ShrinkingEnabled="true" TestConnectionsOnRelease="false"
            TestConnectionsOnReserve="false" TestTableName="dual" URL="jdbc:oracle:thin:@server:port:sid"/>