JGroups replication issue

  Written by The Jahia Team
   Estimated reading time:
7.1.1.0

The following exception  is thrown when a cluster of two nodes is created on the same virtual host with DXM 7.1.1

"javax.management.InstanceNotFoundException: JGroupsReplication:type=protocol,cluster="ehcache-jahia",protocol=GMS"

Cause

Wrong configuration of the cluster

Solution

The file.node.properties shouldn't contain placeholders.

In jahia.node.properties, the cluster.activated variable was set as below:

cluster.activated = ${jahia.cluster.activated}

This is not allowed.

 

The solution is to set the setenv.sh script as below:

CATALINA_OPTS="$CATALINA_OPTS -DjahiaConfig.cluster.activated=true"