Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

JGroups problem

Help
d__feng
2005-03-16
2013-03-07
  • d__feng
    d__feng
    2005-03-16

    Hi,
    I would like to try out clustering with JGroups, but somehow cant manage to set it up. The user guide says I should just set "cluster.enable=true" and specify the config file with "cluster.jgroups.stack=cluster-multicast.xml".

    Ive doen exactly so, but starting the server results in an Exception:

    server:
         [java] 17:19:20,469 DEBUG SimpleJournal:171 - restored write position to 0
         [java] 17:19:20,489 DEBUG MessageServer:88 - Creating read/write pool of size 2
         [java] 17:19:20,609 DEBUG SimpleJournal:171 - restored write position to 0
         [java] 17:19:20,619  INFO DatagramProc:532 - restoring durable subscriber topic1_rec
         [java] java.lang.IllegalStateException: JChannel(): java.lang.Exception: Configurator.ProtocolConfiguration.createLayer(): unable to load class for protocol cluster-multicast.xml (either as an absolute - cluster-multicast.xml - or relative - org.jgroups.protocols.cluster-multicast.xml - package name)!
         [java]     at com.ubermq.jms.server.MessageServer.init(MessageServer.java:130)
         [java]     at com.ubermq.kernel.KernelBasedServer.<init>(KernelBasedServer.java:37)
         [java] 17:19:20,869 FATAL MessageServer:129 - Could not initialize the server
         [java]     at com.ubermq.jms.server.MessageServer.<init>(MessageServer.java:70)
         [java] ChannelException: JChannel(): java.lang.Exception: Configurator.ProtocolConfiguration.createLayer(): unable to load class for protocol cluster-multicast.xml (either as an absolute - cluster-multicast.xml - or relative - org.jgroups.protocols.cluster-multicast.xml - package name)!
         [java]     at com.ubermq.jms.server.MessageServer.main(MessageServer.java:362)
         [java]     at org.jgroups.JChannel.<init>(JChannel.java:163)

    Seems to me as if it doesnt find the config, but it is there. Anyone any ideas what might help? How do I specify the config file absolute?

    thanks,
    Dan

     
    • Zoltan Luspai
      Zoltan Luspai
      2005-04-19

      Hi,

      Try setting this in property file:
      cluster.jgroups.stack=file:./cluster-multicast.xml

      Or use a full path like:
      #cluster.jgroups.stack=file:\\C:\\java\\ubermq-2.7\\conf\\cluster-multicast.xml