Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4265

Latest DB2 11.1 JDBC driver requires additional IBM JDK system dependency

XMLWordPrintable

    • Workaround Exists
    • Hide

      When driver is installed as module, module can specify additional dependency:

      <dependencies>
        ...
        <system export="true">
          <paths>
            <path name="com/ibm/dataaccess"/>
          </paths>
        </system>
        ...
      </dependencies>
      

      For deployed driver additional system export can be added to ibm.jdk module

        <path name="com/ibm/dataaccess"/>
      

      Or combination:

      1. add export to ibm.jdk module
      2. make jdbc driver module dependent on ibm.jdk module
      Show
      When driver is installed as module, module can specify additional dependency: <dependencies> ... <system export= "true" > <paths> <path name= "com/ibm/dataaccess" /> </paths> </system> ... </dependencies> For deployed driver additional system export can be added to ibm.jdk module <path name= "com/ibm/dataaccess" /> Or combination: add export to ibm.jdk module make jdbc driver module dependent on ibm.jdk module

      Running on IBM JDK 8 latest DB2 11.1 JDBC driver (version 4.24.92) fails to connect to database with error:

      Caused by: java.lang.NoClassDefFoundError: com/ibm/dataaccess/ByteArrayUnmarshaller
      	at com.ibm.db2.jcc.a.j.h(j.java:21)
      	at com.ibm.db2.jcc.a.i.g(i.java:151)
      	at com.ibm.db2.jcc.a.i.b(i.java:76)
      	at com.ibm.db2.jcc.t4.y.q(y.java:1373)
      	at com.ibm.db2.jcc.t4.z.c(z.java:4792)
      	at com.ibm.db2.jcc.t4.z.b(z.java:4740)
      	at com.ibm.db2.jcc.t4.z.a(z.java:4726)
      	at com.ibm.db2.jcc.t4.z.l(z.java:547)
      	at com.ibm.db2.jcc.t4.z.d(z.java:153)
      	at com.ibm.db2.jcc.t4.b.k(b.java:1442)
      	at com.ibm.db2.jcc.t4.b.b(b.java:1354)
      	at com.ibm.db2.jcc.t4.b.a(b.java:6687)
      	at com.ibm.db2.jcc.t4.b.b(b.java:888)
      	... 244 more
      

      It doesn't matter whether driver is installed as module or deployed to deployments folder.

      DB2 11.1 driver versions

      Driver version status
      4.21.29 OK
      4.22.29 OK
      4.23.42 Fail
      4.24.92 Fail

              rhn-engineering-lgao Lin Gao
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: