0 Replies Latest reply on Jun 25, 2007 4:15 PM by Jonas Erma

    NoClassDefFoundError with TreeCache on JBoss 4.2

    Jonas Erma Newbie

      Hi,

      when I click on "service=TreeCache-Cluster" link under "jboss.cache" in JMX console, I get a NoClassDefFoundError.

      I just copied my whole JBoss 4.2 installation from my windows dev machine to the linux server. Everything works perfectly, even TreeCache itself. The only difference is that on the server machine I get the exception whereas dev machine does work.

      This is the exception:

      java.lang.NoClassDefFoundError: org/jgroups/MembershipListener
       java.lang.ClassLoader.defineClass1(Native Method)
       java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       java.security.AccessController.doPrivileged(Native Method)
       java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
       org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
       java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
       org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
       org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
       org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
       org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
       java.lang.ClassLoader.loadClass(ClassLoader.java:299)
       java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580)
       java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
       org.jboss.jmx.adaptor.control.Server.getMBeanAttributeResultInfo(Server.java:156)
       org.apache.jsp.inspectMBean_jsp._jspService(inspectMBean_jsp.java:185)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:204)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:96)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:77)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      


      Any ideas?

      tazman