cache
cluster
config
Jahia 8
Jahia 7.3
Error when accessing the cluster tool
Question
Here is the exception:
Error during servlet servicing. Error message: javax.management.InstanceNotFoundException: JGroupsReplication:type=protocol,cluster="ehcache-jahia",protocol=GMS
javax.servlet.ServletException: javax.management.InstanceNotFoundException: JGroupsReplication:type=protocol,cluster="ehcache-jahia",protocol=GMS
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:939)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:871)
at org.apache.jsp.cluster_jsp._jspService(org.apache.jsp.cluster_jsp:966)
Cause
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 jahia.node.properties
for this property
Solution
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"