1 Reply Latest reply on Aug 18, 2003 4:30 AM by madlion

    Class does not expose a management interface

    climber_

      I try to write a theme as described in the Nukes installation and tutorial, but when I deploy the SAR-file I get the following exception:

      DeploymentException: Class does not expose a management interface: nukes_modules.BareTheme;

      My files are as follows:

      package nukes_modules;
      import org.jboss.nukes.html.*;
      import org.jboss.nukes.block.*;
      import org.jboss.system.*;
      public class BareTheme extends ThemeSupport {
      public BareTheme() {
      super("bare");
      }
      public void openTable2(Page page) {
      [...]
      }
      public void header(Page page) {
      [...]
      }
      public void block(Page page, int side, Block block, int index) {
      [...]
      }
      public void openTable1(Page page) {
      [...]
      }
      public void closeTable2(Page page) {
      [...]
      }
      public void closeTable1(Page page) {
      [...]
      }
      public void footer(Page page) {
      [...]
      }
      }


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

      nukes.modules:name=core



      Is there something implisitt I'm missing, that's not mentioned in the tutorial?


      Thanks!

        • 1. Re: Class does not expose a management interface
          madlion

          Hi,

          it should look like this:

          <mbean
          code="org.jboss.nukes.core.themes.extralite.ExtraLiteTheme"
          name="nukes.themes:name=extralite"
          xmbean-dd=""
          xmbean-code="org.jboss.nukes.component.NukesMBean">
          nukes.modules:name=core



          The xmbean entries are new.

          Add them and your problem should fixed.