0 Replies Latest reply on Aug 4, 2008 1:24 PM by Kevin Bates

    Is JGroups required for JBossAS 5?

    Kevin Bates Newbie

      Our multi-app server application needs to use reflection at startup to retrieve the name of the cluster partition - should one exist. It does this by walking the mbeans and calling 'isInstanceOf' against "org.jboss.ha.framework.server.ClusterPartition". Once found it asks the ClusterPartition for its PartitionName attribute.

      In both versions of 5.0 (beta4 and CR1), a call to isInstanceOf would produce java.lang.NoClassDefFoundError: org/jgroups/ExtendedMembershipListener. Only after downloading JGroups (2.6.0 GA) and placing jgroups-all.jar in the server instance's lib directory was this exception resolved. This was not required in 4.0.5.

      Is JGroups-all.jar required for JBossAS 5.0 or is this a bug?

      Here's a more complete stack trace...

      Caused by: java.lang.NoClassDefFoundError: org/jgroups/ExtendedMembershipListener
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:502)
      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:462)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:460)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:437)
      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:254)
      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:148)
      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:196)
      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1009)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:728)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:372)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.mx.server.MBeanServerImpl.isInstanceOf(MBeanServerImpl.java:989)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)