Hi List,<br><br>Only just joined, im not sure if this is the right place to post or not so let me know if it isnt.<br><br>Im trying to use JGroups in a project. <br><br>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.<br>
<br>I tried using the webstart demo of the draw (found here <a href="http://www.jgroups.org/demos.html">http://www.jgroups.org/demos.html</a>) thats actually the replicatedcache demo and to my surprise it worked.<br><br>I downloaded the .jar that the jnlp uses and ran it from the command line and got:<br>
<br><br>---------------------------------------------------------<br>GMS: address is <a href="http://192.168.1.69:54939">192.168.1.69:54939</a> (cluster=replcache-cluster)<br>---------------------------------------------------------<br>
<br><br><br>Now when I tried to run the ReplCacheDemo from within the jgroups-all.jar I get the following:<br><br><br><br>java -cp jgroups-all.jar org.jgroups.demos.ReplCacheDemo<br><br>14-Dec-2009 20:17:24 org.jgroups.logging.JDKLogImpl info<br>
INFO: JGroups version: 2.8.0.CR7<br><br>-------------------------------------------------------------------<br>GMS: address=M-Win7-38823, cluster=replcache-cluster, physical address=fe80:0:0:<br>0:69e5:8edf:3e90:e817:62330<br>
-------------------------------------------------------------------<br><br><br>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:<br>
<br><br><br>14-Dec-2009 21:12:12 org.jgroups.logging.JDKLogImpl info<br>INFO: JGroups version: 2.8.0.CR7<br>Exception in thread &quot;main&quot; org.jgroups.ChannelException: unable to setup the protocol stack<br>        at org.jgroups.JChannel.init(JChannel.java:1706)<br>
        at org.jgroups.JChannel.&lt;init&gt;(JChannel.java:243)<br>        at org.jgroups.JChannel.&lt;init&gt;(JChannel.java:226)<br>        at jgroupssimple.Main.main(Main.java:25)<br>Caused by: java.lang.Exception: unable to load class for protocol  (either as an absolute -  - or relative - org.jgroups.protocols. - package name)!<br>
        at org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:1244)<br>        at org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:1135)<br>        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:368)<br>
        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:88)<br>        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:54)<br>        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:452)<br>
        at org.jgroups.JChannel.init(JChannel.java:1702)<br>        ... 3 more<br>Java Result: 1<br>BUILD SUCCESSFUL (total time: 0 seconds)<br><br><br><br>Anyone any clues as to whats going on here?<br>Cheers for your time :)<br>
Mike<br><br><br><br><br clear="all"><br>-- <br>Mike Cann<br><a href="http://www.mikecann.co.uk/">http://www.mikecann.co.uk/</a><br><a href="http://www.artificialgames.co.uk/">http://www.artificialgames.co.uk/</a><br>