4 Replies Latest reply on Jan 2, 2002 2:14 PM by Guy Rouillier

    JBoss 3.0 and MySQL

    Michael Klose Newbie

      Hallo,

      I just tried to use the example mysql-service from the documentation. My mysql-service.xml looks like this:

      <?xml version="1.0" encoding="UTF-8" ?>
      - <!-- =====================================================================
      -->
      - <!--
      -->
      - <!-- foo App DataSource
      -->
      - <!--
      -->
      - <!-- =====================================================================
      -->
      - <!-- $Id: resource.xml,v 3.5 2001/12/21 16:34:12 d_jencks Exp $
      -->
      -

      - <!-- ====================================================================
      -->
      - <!-- JDBC - Initialize the databases
      -->
      - <!-- to ConnectionFactoryLoader
      -->
      - <!-- ====================================================================
      -->
      -
      ConnectionURL=jdbc:mysql://localhost/foo DriverClass=org.gjt.mm.mysql.Driver UserName=root Password=root
      fooDS
      java:/TransactionManager
      <depends optional-attribute-name="ResourceAdapterName">JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter
      <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
      # #Wed Aug 15 16:17:29 EDT 2001 BlockingTimeoutMillis=500000 IdleTimeoutMinutes=30 MaxSize=10 CleanupIntervalMinutes=10 MinSize=0 MaxIdleTimeoutPercent=1.0
      org.jboss.resource.security.ManyToOnePrincipalMapping
      UserName=sa



      When I start JBoss there is follwing error:

      15:18:29,116,ServiceCreator] About to create the beanDefaultDomain:service=ConnectionFactoryLoader,name=fooDS
      [15:18:29,116,ServiceCreator] Created the beanDefaultDomain:service=ConnectionFactoryLoader,name=fooDS
      [15:18:29,567,ConnectionFactoryLoader] Starting
      [15:18:29,587,fooDS] Stopped
      javax.management.RuntimeOperationsException: Object name cannot be null
      at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.java:1096)
      at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:402)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)

      What's wrong?

      Thanks