Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1673

ClassNotFoundException thrown while creating DB2 datasource from Management console using default driver class

    XMLWordPrintable

Details

    • Hide

      Create DB2 data source using Managemnet console.

      Don't change default driver class shown in the template

      Show
      Create DB2 data source using Managemnet console. Don't change default driver class shown in the template
    • Workaround Exists
    • Hide

      Manually set the driver class to "com.ibm.db2.jcc.DB2Driver" for JDBC 4 driver.

      Show
      Manually set the driver class to "com.ibm.db2.jcc.DB2Driver" for JDBC 4 driver.

    Description

      By default driver class is set as "COM.ibm.db2.jdbc.app.DB2Driver" for DB2 datsource creation through HAL management console using JDBC4 drivers.

      driver.get(DRIVER_CLASS_NAME).set("COM.ibm.db2.jdbc.app.DB2Driver");

      Shouldn't the default class set to "com.ibm.db2.jcc.DB2Driver"?

      ~~~
      at org.jboss.threads.JBossThread.run(JBossThread.java:485)
      Caused by: javax.resource.ResourceException: IJ031087: Failed to register DriverClass for: COM.ibm.db2.jdbc.app.DB2Driver
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:604)
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:320)
      ... 35 more
      Caused by: java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver from
      ~~~

      Attachments

        Issue Links

          Activity

            People

              hpehl@redhat.com Harald Pehl
              rhn-support-sudnair Sudhish Nair
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: