java.lang.NoClassDefFoundError: org/jboss/dep

Help
2006-10-11
2013-05-02
  • Stefan Baramov
    Stefan Baramov
    2006-10-11

    JBoss 4.0.4 GA,
    JDK 1.5.0_07
    Windows XP SP2

    Copied the following files over:
    jbossall-client.jar
    jmx-client.jar
    jmx-invoker-adaptor-client.jar

    Still I get the NoClassDefFound. I assume it is a mistake on JBoss side. How do I fix it ?

    Here is the trace log:

    ARNING: Error for /config/showMBeans.do?endURL=%2Fconfig%2FshowAddGraph.do&multiple=true&dataTypes=java.lang.Number&dataTypes=javax.managem
    nt.openmbean.CompositeData&navigation=Add+Graph&applicationId=1160581143740
    ava.lang.NoClassDefFoundError: org/jboss/deployment/MainDeployerConstants
           at java.lang.ClassLoader.defineClass0(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
           at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
           at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
           at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:219)
           at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
           at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
           at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:517)
           at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:639)
           at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:309)
           at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:241)
           at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1469)
           at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1432)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
           at java.util.HashMap.readObject(HashMap.java:1015)
           at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
           at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:452)
           at javax.management.modelmbean.DescriptorSupport.readObject(DescriptorSupport.java:1284)
           at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
           at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:452)
           at javax.management.modelmbean.ModelMBeanAttributeInfo.readObject(ModelMBeanAttributeInfo.java:514)
           at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
           at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
           at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:134)
           at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:331)
           at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:194)
           at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
           at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
           at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
           at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
           at $Proxy0.getMBeanInfo(Unknown Source)
           at org.jmanage.core.modules.jboss.JBossServerConnection.getObjectInfo(JBossServerConnection.java:65)
           at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jmanage.core.management.ServerConnectionProxy.invoke(ServerConnectionProxy.java:64)
           at $Proxy1.getObjectInfo(Unknown Source)
           at org.jmanage.core.services.MBeanServiceImpl.queryMBeansWithAttributes(MBeanServiceImpl.java:111)
           at org.jmanage.core.services.MBeanServiceImpl.queryMBeansOutputMap(MBeanServiceImpl.java:81)
           at org.jmanage.webui.actions.config.ShowMBeanAction.execute(ShowMBeanAction.java:46)
           at org.jmanage.webui.actions.BaseAction.execute(BaseAction.java:41)
           at org.jmanage.webui.JManageRequestProcessor.processActionPerform(JManageRequestProcessor.java:93)
           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
           at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
           at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
           at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
           at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
           at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
           at org.mortbay.http.HttpServer.service(HttpServer.java:879)
           at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
           at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
           at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
           at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
           at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
           at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

     
    • Rakesh Kalra
      Rakesh Kalra
      2006-10-11

      From the jmanage wiki:

      Before setting up Alerts in jManage for JBoss, you need to copy "jmanage-jboss.jar" from

      <jmanage-home>/modules/jboss

      to

      <jboss-server-config>/lib.

      For example, if you are running the "default" JBoss server configuration, copy this jar to: <jboss-home>/server/default/lib.

      You will need to restart JBoss, after copying the file.

      Reference: http://jmanage.org/wiki/index.php/JBoss

      Please let me know if this doesn't help.

      Thanks,
      Rakesh