4 Replies Latest reply on Sep 3, 2001 12:24 PM by rogert

    Mysql startup error

    munisp

      Can anyone explain to why i'm getting the following error messages when I startup JBoss-2.4.0.26_Tomcat-3.2.3.

      =======================================
      java.lang.NullPointerException
      at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc
      e.java:178)
      at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.jav
      a:407)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:106
      )
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
      igurationService.java:836)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.Main.(Main.java:210)
      at org.jboss.Main$1.run(Main.java:116)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:112)
      [Configuration] java.lang.NullPointerException
      [Configuration] at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection
      (XAPoolDataSource.java:178)
      [Configuration] at org.jboss.jdbc.XADataSourceLoader.startService(XAData
      SourceLoader.java:407)
      [Configuration] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
      Support.java:106)
      [Configuration] at java.lang.reflect.Method.invoke(Native Method)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1628)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1523)
      [Configuration] at org.jboss.configuration.ConfigurationService$ServiceP
      roxy.invoke(ConfigurationService.java:836)
      [Configuration] at $Proxy0.start(Unknown Source)
      [Configuration] at org.jboss.util.ServiceControl.start(ServiceControl.ja
      va:81)
      [Configuration] at java.lang.reflect.Method.invoke(Native Method)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1628)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
      rverImpl.java:1523)
      [Configuration] at org.jboss.Main.(Main.java:210)
      [Configuration] at org.jboss.Main$1.run(Main.java:116)
      [Configuration] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [Configuration] at org.jboss.Main.main(Main.java:112)
      ======================================

      My Jboss.jcml is as follows
      =======================================

      org.gjt.mm.mysql.Driver





      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
      MYSQL
      jdbc:mysql://localhost/jboss
      jboss
      1234


      =======================================

      I have installed mysql driver in lib/etc.

      What is i'm i doing wrong

      thanks
      Patrick

        • 1. Re: Mysql startup error
          sfuller3

          I just migrated from JBoss-2.2.2_Tomcat-3.2.2 to JBoss-2.4.0_Tomcat-3.2.3. mySQL worked fine and now I'm getting java.lang.ClassNotFoundException: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
          If I could get this error resolved, I could see if I get past the error you've reported. Could you send me your configuration setup for mySQL?

          Sean
          asts_inc@yahoo.com

          • 2. Re: Mysql startup error
            nuanda

            re: sfuller3,

            That's because "org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl" is no longer used by JBoss 2.4.

            Find the reference to that in your jboss.jcml datasource definition and switch it to: "org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl"


            Dave


            • 3. Re: Mysql startup error
              stollar

              I had this same problem which was resolved by using:

              <attribute name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attribute>
              

              However after I did this I now get the same message as the originator of this thread. but haven't read the next reply yet!


              • 4. Re: Mysql startup error
                rogert

                Someone resolved our problem days ago in other forum.
                I searched for 178 and get this:
                http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/