3 Replies Latest reply on Jul 28, 2003 2:53 PM by cwa

    MBean Management exception with JournalModule

    cwa

      I am trying to run the latest code from CVS with jboss3.2.2RC2-jetty4.2.11. I have succesfully solved DDL, jetty and datasource issues, but now I am stuck at deployment with a bunch of MBean exceptions.

      Class does not expose a management interface: org.jboss.nukes.addons.modules.journal.JournalModule; - nested throwable: (javax.management.NotCompliantMBeanException: Class does not expose a management interface: org.jboss.nukes.addons.modules.journal.JournalModule))
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
      ...

      (full stack trace is attached)

      Any help or hints to get me going would be greatly appreciated. Thanks.

      -- Christophe

        • 1. Re: MBean Management exception with JournalModule

          first you should download the version bundled with tomcat : jboss-3.2.2rc2 with tomcat.

          then the jboss-service.xml file is wrong, it has just been corrcted in the cvs but due to the public cvs update latency here it is :

          you have to replace the content of journal/src/resources/nukes-journal-sar/META-INF/jboss-service.xml

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

          <mbean
          code="org.jboss.nukes.addons.modules.journal.JournalModule"
          name="nukes.modules:name=journal"
          xmbean-dd=""
          xmbean-code="org.jboss.nukes.component.NukesMBean">
          nukes.modules:name=core
          jboss.j2ee:service=EJB,jndiName=nukes/journal/Journal
          jboss.j2ee:service=EJB,jndiName=nukes/journal/Stat
          jboss.j2ee:service=EJB,jndiName=nukes/journal/Comment



          <operation
          name="main"
          display-name="Journal"
          description=""
          image=""
          hint=""/>






          julien

          • 2. Re: MBean Management exception with JournalModule
            cwa

            Thanks for the help.

            Now, I am stuck with the same error but for JmxModule:

            org.jboss.deployment.DeploymentException: create operation failed for package file:/usr/local/jboss-3.2.2RC2/server/default/tmp/deploy/tmp44074nukes-distrib.ear-contents/nukes-jmx.sar; - nested throwable: (org.jboss.deployment.DeploymentException: Class does not expose a management interface: org.jboss.nukes.addons.modules.jmx.JmxModule; - nested throwable: (javax.management.NotCompliantMBeanException: Class does not expose a management interface: org.jboss.nukes.addons.modules.jmx.JmxModule))
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
            ...

            Should I simply update jmx/src/resources/nukes-jmx-sar/jboss-service.xml and add the following XML attributes?

            xmbean-dd=""
            xmbean-code="org.jboss.nukes.component.NukesMBean"

            Also, the reason I was using the jetty version is that the build fails with "server/default/deploy/jbossweb-jetty.sar not found" if I don't use it. So, I assumed that nukes was targeted at jetty. I'll switch to the tomcat version for further deployment attempts.

            • 3. Re: MBean Management exception with JournalModule
              cwa

              Alright. That did it. Along with the etra tag around .
              Now, I have to fix adminmessages and all the other ones that are going to break. But that's ok. I am happy to be able to keep going!
              Thanks for the help!