1 Reply Latest reply on Mar 6, 2003 8:54 AM by David Jencks

    Native XADataSource-Support with DB2 V8.1

    Jörg Sailer Newbie

      Hello,
      I try to use the native DB2 XADataSource of the new JDBC Type 4 Driver but this does not work well, because the DataSource will not be established.
      We are using JBoss 2.4.8 on a Windows-Environment with JDK 1.3.1_07 from SUN.

      This is the Stack-Trace:

      [16:16:55,389,XAPoolDataSource] Creating XA Pool
      [16:16:55,509,DB2_sps] Stopped
      java.lang.NoSuchMethodException
      at java.lang.Class.getMethod0(Native Method)
      at java.lang.Class.getMethod(Unknown Source)
      at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:355)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [16:16:55,519,ConfigurationService] Unexpected error
      java.lang.NoSuchMethodException
      at java.lang.Class.getMethod0(Native Method)
      at java.lang.Class.getMethod(Unknown Source)
      at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:355)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)


      This is my configuration:

      <!-- ==================================================================== -->
      <!-- JDBC -->
      <!-- ==================================================================== -->


      org.hsqldb.jdbcDriver,com.ibm.db2.jcc.DB2Driver



      DB2_sps
      com.ibm.db2.jcc.DB2XADataSource

      jdbc:db2://lnxnp10:50800/spstest
      1200000
      spsdef
      10
      xxxxx
      false
      false
      false
      true
      120000
      1800000
      false
      false
      1.0
      0


      Has anyone an idea what is wrong with this ?

      Jörg

        • 1. Re: Native XADataSource-Support with DB2 V8.1
          David Jencks Master

          Your best bet is to look at the jboss source code and see what is going on. There may be a more recent 2.4 version that fixes this. At some point there was code that assumed you were using the jboss fake xa wrapper: I think this was eventually fixed.

          If you run into significantly more problems you might want to consider using jboss 3.0.7 or later (currently from cvs) or 3.2RC2 or later since it is easier to get help on xa with these.