Menu ▾ ▴

#73 Can't work will with DB2

v3.1.2
open
5
2004-12-10
2004-12-10
Anonymous
No

We JAVA application using DB2 works well with out JAVA
Service Wrapper, when Integrated with JAVA Service
Wrapper , there is a failure when the init DB2 driver.
Any help is appreciated.
My emaill address is : mart_139@hotmail.com

Discussion

  • Leif Mortenson

    Leif Mortenson - 2004-12-10

    Logged In: YES
    user_id=228081

    You din't give me a stack trace or anything else to work
    with. :-/

    My first guess is that your DB2 driver is not able to locate
    its native libraries correctly. That should be obvious
    from the stack trace.

    Normally Java doesn't use a library path and thus locates
    its libraries from the PATH by default. When using the
    Wrapper, a library path is specified so the default does not
    work. You have to specifically add the location of the
    libraries.

    Try adding that with the following property:
    wrapper.java.library.path.append_system_path=true
    http://wrapper.tanukisoftware.org/doc/english/prop-java-library-path-append-system-path.html

    Or beter, add the location of your libraries directly:
    wrapper.java.library.path.2=/db2libs
    http://wrapper.tanukisoftware.org/doc/english/prop-java-library-path-n.html

    Cheers,
    Leif

     
  • Leif Mortenson

    Leif Mortenson - 2004-12-10
    • assigned_to: nobody --> mortenson
     
  • Nobody/Anonymous

    Logged In: NO

    I experienced the same problem using the
    COM.ibm.db2.jdbc.app.DB2Driver driver.
    It works fine with the COM.ibm.db2.jdbc.net.DB2Driver (pure
    java). Your suggestion (specifing the <DB2_HOME>/BIN
    directory with a wrapper.java.library.path.<n> property for
    including the native libraries) works fine too with the
    "app" driver. No bugs into the Java Service Wrapper!!! :))

     

Log in to post a comment.