cache cluster config Jahia 8 Jahia 7.3

Error when accessing the cluster tool


Here is the exception:

Error during servlet servicing. Error message: JGroupsReplication:type=protocol,cluster="ehcache-jahia",protocol=GMS
javax.servlet.ServletException: JGroupsReplication:type=protocol,cluster="ehcache-jahia",protocol=GMS
 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(
 at org.apache.jsp.cluster_jsp._jspService(org.apache.jsp.cluster_jsp:966)


The problem is a spring problem. For the cache configuration we use a spring placeholder functionality. We have in the config:

 (jahiaProperties['cluster.activated'] == 'true' ? '-cluster.xml' : '.xml'))

So you should use lowercase values in for this property



The property cluster.activated was set to True.

cacheProvider bean property is case-sensitive, and checks for value true, resulting in non-cluster ehcache-jahia.xml being used instead of ehcache-jahia-cluster.xml

Also, check that there is no space after the "true".

Bad entry (value with a space):

cluster.activated                                      = "true "

Bad entry (wrong case)

cluster.activated                                      = "True"

Good entry:

cluster.activated                                      = "true"