[jboss-dev] JGroup Oddness.. GMS?

mike cann mike.cann at gmail.com
Mon Dec 14 16:18:40 EST 2009

Hi List,

Only just joined, im not sure if this is the right place to post or not so
let me know if it isnt.

Im trying to use JGroups in a project.

First things first tried running a very simple example but couldnt get the
two machines to talk to each other, i read all the documentation but still
couldnt work out why.

I tried using the webstart demo of the draw (found here
http://www.jgroups.org/demos.html) thats actually the replicatedcache demo
and to my surprise it worked.

I downloaded the .jar that the jnlp uses and ran it from the command line
and got:

GMS: address is (cluster=replcache-cluster)

Now when I tried to run the ReplCacheDemo from within the jgroups-all.jar I
get the following:

java -cp jgroups-all.jar org.jgroups.demos.ReplCacheDemo

14-Dec-2009 20:17:24 org.jgroups.logging.JDKLogImpl info
INFO: JGroups version: 2.8.0.CR7

GMS: address=M-Win7-38823, cluster=replcache-cluster, physical

So im not sure whats going on here, it looks like the jnlp demo is using a
different GMS (?) settings to the one in jgroups-all.jar, so I tried to take
the udp.xml file from the jnlp jar and use it in a simple example and I get
the follwing errors:

14-Dec-2009 21:12:12 org.jgroups.logging.JDKLogImpl info
INFO: JGroups version: 2.8.0.CR7
Exception in thread "main" org.jgroups.ChannelException: unable to setup the
protocol stack
        at org.jgroups.JChannel.init(JChannel.java:1706)
        at org.jgroups.JChannel.<init>(JChannel.java:243)
        at org.jgroups.JChannel.<init>(JChannel.java:226)
        at jgroupssimple.Main.main(Main.java:25)
Caused by: java.lang.Exception: unable to load class for protocol  (either
as an absolute -  - or relative - org.jgroups.protocols. - package name)!
        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:452)
        at org.jgroups.JChannel.init(JChannel.java:1702)
        ... 3 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

Anyone any clues as to whats going on here?
Cheers for your time :)

Mike Cann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-development/attachments/20091214/7b3d021e/attachment.html 

More information about the jboss-development mailing list