0 Replies Latest reply on Dec 19, 2006 1:20 AM by apate

    NoClassDefFoundError: org/jboss/system/ServiceMBean

    apate

      Hi

      Sorry if this is a complete newbie question...

      I'm trying to move a set of .sars onto jboss 4.0.5 (from 3.something). One of the classes in the .sar extends org.jboss.system.ServiceMBean. But on attempting to deploy, I get the following error:

      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      (lines removed)
      Caused by: java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBean
      at java.lang.ClassLoader.findBootstrapClass(Native Method)
      at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
      at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:277)


      I presume that this is some sort of class loader issue... but I'm not making a lot of progress after several hours.

      Any suggestions gratefully received.