7 Replies Latest reply on Oct 5, 2001 9:04 AM by Chris Riddick

    DB2 DataSource Error

    Victor Serrato Newbie

      Hi.

      My name is Victor Serrato, I'm new JBOSS user, so I
      think it is a common error , but I don't found it in
      the FAQ list.

      I am using DB2 V. 7.1, jdk 1.3, and I added the
      db2java.zip in lib/ext and the fallowing lines in
      tomcat/jboss.jcml

      <!-- DB2 Driver -->

      COM.ibm.db2.jdbc.net.DB2Driver



      org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
      DB2DS
      jdbc:db2://localhost:8888/hades
      Hades
      Hades


      <!-- End DB2 Driver -->

      When jboss start it produced the fallowing lines :
      ...
      [Configuration] URL set to
      jdbc:db2://localhost:8888/hades in
      DefaultDomain:service=XADataSource,name=DB2
      ...
      [DB2DS] Initializing
      [DB2DS] Initialized
      ...

      [DB2DS] Starting
      [DB2DS] XA Connection pool DB2DS bound to java:/DB2DS
      [DB2DS] Stopped
      [DB2DS] java.lang.NullPointerException
      [DB2DS] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
      [DB2DS] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330)
      [DB2DS] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
      [DB2DS] at java.lang.reflect.Method.invoke(Native Method)
      [DB2DS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [DB2DS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [DB2DS] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
      [DB2DS] at java.lang.reflect.Method.invoke(Native Method)
      [DB2DS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [DB2DS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [DB2DS] at org.jboss.Main.(Main.java:217)
      [DB2DS] at org.jboss.Main$1.run(Main.java:121)
      [DB2DS] at java.security.AccessController.doPrivileged(Native Method)
      [DB2DS] at org.jboss.Main.main(Main.java:117)
      [Service Control] Could not start DefaultDomain:service=XADataSource,name=DB2
      [Service Control] java.lang.NullPointerException
      [Service Control] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
      [Service Control] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330)
      [Service Control] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
      [Service Control] at java.lang.reflect.Method.invoke(Native Method)
      [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Service Control] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
      [Service Control] at java.lang.reflect.Method.invoke(Native Method)
      [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Service Control] at org.jboss.Main.(Main.java:217)
      [Service Control] at org.jboss.Main$1.run(Main.java:121)
      [Service Control] at java.security.AccessController.doPrivileged(Native Method)
      [Service Control] at org.jboss.Main.main(Main.java:117)


      Please could anybody tell me any solution for this problem?

      Thanks

      Victor Serrato virrato@yahoo.com