2 Replies Latest reply on Apr 1, 2004 8:12 AM by Glenn Everitt

    ServiceMBeanSupport

    Glenn Everitt Newbie

      I created a little client that tests functions of my JMX MBean using JBoss 3.2.3. I am connecting to it via the RMIAdaptor and executing operations and getting attribute values back. I don't understand why if I don't include jboss-system.jar on the classpath I get
      NoClassDefFoundError org.jboss/system/ServiceMBeanSupport

      It seems like the this class should be somewhere in the client jars but it is not. I thought I would find it in some place like jmx-rmi-connector-client.jar. Is there a way I don't have to reference this server side jar file?

        • 1. Re: ServiceMBeanSupport
          Scott Stark Master

          My RMIAdaptor client runs fine without the jboss-system.jar. Show what mbean you are looking up and the full NoClassDefFoundError stack trace.

          • 2. Re: ServiceMBeanSupport
            Glenn Everitt Newbie

            I am running my client as a set of JUnit Test cases if I include jboss-system.jar on the classpath these test case all run. If I don't have it on the classpath I get the following exception

            [junit] Testcase: testRegistrationFileWithConversion(com.compuware.messaging.emailer.CWEmailMessageTest): Caused an ERROR
            [junit] org/jboss/system/ServiceMBeanSupport
            [junit] java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBeanSupport
            [junit] at java.lang.ClassLoader.defineClass0(Native Method)
            [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
            [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
            [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
            [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
            [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
            [junit] at java.security.AccessController.doPrivileged(Native Method)
            [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
            [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
            [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

            [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

            [junit] at java.lang.ClassLoader.defineClass0(Native Method)
            [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
            [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
            [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
            [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
            [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
            [junit] at java.security.AccessController.doPrivileged(Native Method)
            [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
            [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
            [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

            [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

            [junit] at java.lang.Class.forName0(Native Method)
            [junit] at java.lang.Class.forName(Class.java:141)
            [junit] at com.compuware.messaging.emailer.CWEmailMessageTest.class$(CWEmailMessageTest.java:42)
            [junit] at com.compuware.messaging.emailer.CWEmailMessageTest.setRegistrationFile(CWEmailMessageTest.java:562)
            [junit] at com.compuware.messaging.emailer.CWEmailMessageTest.testRegistrationFileWithConversion(CWEmailMessageTest.java:457)
            [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            [junit] at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
            [junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
            [junit] at junit.extensions.TestSetup.run(TestSetup.java:23)