5 Replies Latest reply: Feb 1, 2012 12:36 AM by 887796-Oracle RSS

    Using GroupMembershipListener to find primary server

    887796-Oracle
      Hi,

      We are building a HA application. We need to find out which one of the servers are the primary one. FOr that we want to use the GroupMembershipListener. Is this correct way to go?

      We added to a bean that implemet StreamSink also the GroupMembershipListener.

      Code is compiling but when we deploy it we get:

      Caused by: java.lang.NoClassDefFoundError: com/bea/wlevs/ede/api/cluster/GroupMembershipListener
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
           at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:251)
           at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:576)
           at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:546)
           at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:477)
           at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:465)
           at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:445)
           at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:279)
           at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
           at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
           at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
           at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
           at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:121)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
           at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
           at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

      Can you help?

      Thanks,