3 Replies Latest reply on Nov 12, 2001 4:55 PM by daniello

    javax.management.NotCompliantMBeanException

    daniello

      Hi, I'm getting this error,

      JBoss 2.4.3
      Java 1.3.1_01 (Sun Microsystems)
      Windows 2000 (All Patched up)
      mySQL 3.23.38
      gjt: mm.mysql-2.0.7-bin.jar
      gjt: mm.mysql-2.0.4-bin.jar (either)

      --Error--

      [Configuration] Could not create MBean DefaultDomain:service=mysql(org.gjt.mm.mysql.Driver)
      [Configuration] javax.management.NotCompliantMBeanException: org.gjt.mm.mysql.Driver does not implement the org.gjt.mm.mysql.DriverMBean interface or the DynamicMBean interface

      TIA

      -daniel

      Configuration files:


      mm.mysql-2.0.?-bin.jar located in j:\java\JBoss-2.4.3\lib\ext

      #### jboss.jcml --------------------------------------


      org.gjt.mm.mysql.Driver



      3306
      true
      default
      false



      AADS
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl

      jdbc:mysql://localhost:3306/AA
      1200000
      daniel
      10

      false
      false
      false
      true
      120000
      1800000
      false
      false
      1.0
      0


      #### ..\conf\default\mysql-service.xml ----------------


      <?xml version="1.0" encoding="UTF-8"?>


      <!-- ===================================================================== -->
      <!-- -->
      <!-- foo App DataSource -->
      <!-- -->
      <!-- ===================================================================== -->

      <!-- $Id: resource.xml,v 1.5 2001/10/11 22:13:58 d_jencks Exp $ -->




      JBOSS-SYSTEM:service=Naming
      JBOSS-SYSTEM:service=TransactionManager
      JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
      JCA:service=RARDeployer




      <!-- ==================================================================== -->
      <!-- JDBC - Initialize the databases -->
      <!-- to ConnectionFactoryLoader -->
      <!-- ==================================================================== -->


      ConnectionURL=jdbc:mysql://localhost:3306/AA
      DriverClass=org.gjt.mm.mysql.Driver
      UserName=daniel
      AADS
      java:/TransactionManager
      Minerva JDBC LocalTransaction ResourceAdapter
      JCA:service=RARDeployer
      MinervaSharedLocalCMFactory
      #
      #Wed Aug 15 16:17:29 EDT 2001
      InvalidateOnError=false
      BlockingTimeoutMillis=500000
      IdleTimeoutMillis=1800000
      MaxSize=10
      TimestampUsed=false
      IdleTimeoutEnabled=false
      CleanupIntervalMillis=120000
      MinSize=0
      GCMinIdleMillis=1200000
      GCEnabled=false
      MaxIdleTimeoutPercent=1.0


      org.jboss.resource.security.ManyToOnePrincipalMapping

      UserName=




      #### -Mysql Access

      Mysql access was tested by just doing
      mysql -u daniel AA
      which worked.

        • 1. Re: javax.management.NotCompliantMBeanException
          daniello

          Full Error message: FYI

          [Info] Java version: 1.3.1_01,Sun Microsystems Inc.
          [Info] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun Microsystems Inc.
          [Info] System: Windows 2000 5.0,x86
          [Shutdown] Shutdown hook added
          [Configuration] Could not create MBean DefaultDomain:service=mysql(org.gjt.mm.mysql.Driver)
          [Configuration] javax.management.NotCompliantMBeanException: org.gjt.mm.mysql.Driver does not implement the org.gjt.mm.mysql.DriverMBean interface or the DynamicMBean interface
          [Configuration] at com.sun.management.jmx.Introspector.testCompliance(Introspector.java:130)
          [Configuration] at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
          [Configuration] at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:759)
          [Configuration] at org.jboss.configuration.ConfigurationService.create(ConfigurationService.java:579)
          [Configuration] at org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:381)
          [Configuration] at java.lang.reflect.Method.invoke(Native Method)
          [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [Configuration] at org.jboss.Main.(Main.java:213)
          [Configuration] at org.jboss.Main$1.run(Main.java:127)
          [Configuration] at java.security.AccessController.doPrivileged(Native Method)
          [Configuration] at org.jboss.Main.main(Main.java:123)
          [Service Control] Initializing 45 MBeans
          [WebService] Initializing
          [WebService] Initialized
          [NamingService] Initializing
          [NamingService] Initialized

          • 2. Re: javax.management.NotCompliantMBeanException
            pazu

            You don't need the ... section. Simply cut it out.

            • 3. Re: javax.management.NotCompliantMBeanException
              daniello

              That seams to have taken care of it, now for the next configuration bug... :)


              Thank you!

              -daniel