0 Replies Latest reply on Dec 16, 2004 2:53 PM by Chad Patras

    JBoss4 + Tomcat5 DB2 CLI0647E error from CMP Bean

    Chad Patras Newbie

      I am installing JBoss4 with tomcat5 on a Solaris 9 OS. The environment has a db2 client installed for version 7 and 8. When the DB2Driver class is being initialized the following exception is thrown. The same configuration is working on all of my other machines with similar architecture. The only difference appears to be a slight variation in the DB2 client patch version. Any help would be greatly appreciated.

      Caused by: org.jboss.resource.JBossResourceException: Failed to
      register driver for: COM.ibm.db2.jdbc.app.DB2Driver; - nested
      throwable: (java.
      sql.SQLException: [IBM][JDBC Driver] CLI0647E Error allocating DB2
      environment handle, rc=-1.)
      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:284)
      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:150)
      ... 130 more
      Caused by: java.sql.SQLException: [IBM][JDBC Driver] CLI0647E Error
      allocating DB2 environment handle, rc=-1.
      at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:259)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at java.lang.Class.newInstance0(Class.java:308)
      at java.lang.Class.newInstance(Class.java:261)