users@shoal.java.net

Re: [Shoal-Users] Could not locate World PeerGroup module implementation

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Fri, 07 Dec 2007 13:38:09 -0800

I put your code snippet in a test class (attached) and here's the ouput
I see:


C:\Documents and
Settings\shreed\IdeaProjects\test\out\production\test>java -cp
.;"c:\Documents and Settings\shreed\My
Documents\shoal083007\jxta.jar";"c:\Docum
ents and Settings\shreed\My Documents\shoal083007\shoal-gms.jar" Test

Dec 7, 2007 1:32:16 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
getMemberTokens
INFO: GMS View Change Received: Members in view (before change analysis)
are :
1: MemberId: PeerName, MemberType: CORE, Address:
urn:jxta:uuid-8C677192023A48AE9201BE8E2B2A84E407BF4D8F407F49DBB2ACDF5589BD145703

Dec 7, 2007 1:32:16 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
newViewObserved
INFO: Analyzing new membership snapshot received as part of event :
MASTER_CHANGE_EVENT

Can you ensure you have shoal-1.0_08302007 jars and these are not by any
chance corrupted ?
I tried both the 08302007 version and the ones from cvs.

regards
Shreedhar


Kapucin wrote:
> Hello,
> I tried to start up a simple application with the latest libraries
> (shoal-1.0_08302007.zip), but get the exception below when
> calling "GroupManagementService#join()"
>
> "7-Dec-2007 2:35:57 PM com.sun.enterprise.jxtamgmt.ClusterManager <init>
> SEVERE: Could not locate World PeerGroup Module Implementation."
>
> It seems as if jxta.jar is missing something.
> Any idea on what is going on?
>
> Both jxta.jar and shoal-gms.jar are on the classpath.
>
> The code to reproduce:
>
> GroupManagementService gms =
> (GroupManagementService) GMSFactory.startGMSModule(
> "PeerName",
> "GroupName",
> GroupManagementService.MemberType.CORE,
> null);
> gms.join()
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>
>


import com.sun.enterprise.ee.cms.core.GMSFactory;
import com.sun.enterprise.ee.cms.core.GroupManagementService;
import com.sun.enterprise.ee.cms.core.GMSException;

/**
 * Created by IntelliJ IDEA.
 * User: shreed
 * Date: Dec 7, 2007
 * Time: 1:04:40 PM
 * To change this template use File | Settings | File Templates.
 */
public class Test {
    public static void main (String[] args){
        GroupManagementService gms =
            (GroupManagementService) GMSFactory.startGMSModule(
                "PeerName",
                "GroupName",
                GroupManagementService.MemberType.CORE,
                null);
        try {
            gms.join();
        } catch (GMSException e) {
            e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
        }
    }
}