1 Reply Latest reply on Nov 19, 2010 8:19 AM by spinner

    JBoss AS 6M5 with db2 connection problem


      I´m trying to setup an application in JBoss 6M5, and it gives me the message

      "Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: COM.ibm.db2.jdbc.app.DB2Driver; - nested throwable: (java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path"

      when trying to establish connection to create the connection pool.


      I´m not getting why cause I have the db2java.zip (which has the driver class) in server/xxx/lib and it´s working well in 4.2.3 GA, and 4.3.


      I tried to set it up in another lib folders (root/lib, root/client, root/common/lib ) just to test it, however I got the same mistake.


      Am I missing something?

        • 1. Re: JBoss AS 6M5 with db2

          I've added the C:\Program Files\SQLLIB\bin\ directory to the java.library.path

          ( -Djava.library.path="C:\Java\JBoss\jboss-6.0.0-M5\bin\native;C:\Program Files\SQLLIB\bin\;" )

          and I moved forward to another error:


          Now I´m getting the message: java.lang.UnsatisfiedLinkError: C:\Program Files\SQLLIB\bin\db2jdbc.dll: Can't find dependent libraries


          It seems that it can find the  db2jdbc.dll but it has some other dependencies which I don´t know