title: Liferay 6.2 clustering issue with multicast
body: <p>I am trying to cluster ehcache and lucene with Liferay 6.2 EE sp2 bundle on 2 servers with mutlicast enabled. WE have Apache HTTPD servers fronting tomcat servers using reverse proxy. A valid 6.2 license is deployed on both the nodes.</p>
  
  <p>We user the following properties in the portal-ext.properties:</p>
  
  <pre><code>cluster.link.enabled=true
  lucene.replicate.write=true
  ehcache.cluster.link.replication.enabled=true
  
  # Since we are using SSL on the frontend
  web.server.protocol=https
  
  # set this to any server that is visible to both the nodes
  cluster.link.autodetect.address=dbserverip:dbport
  
  #ports and ips we know work in our environment for multicast
  multicast.group.address["cluster-link-control"]=ip
  multicast.group.port["cluster-link-control"]=port1
  
  multicast.group.address["cluster-link-udp"]=ip
  multicast.group.port["cluster-link-udp"]=port2
  
  multicast.group.address["cluster-link-mping"]=ip
  multicast.group.port["cluster-link-mping"]=port3
  
  multicast.group.address["hibernate"]=ip
  multicast.group.port["hibernate"]=port4
  
  multicast.group.address["multi-vm"]=ip
  multicast.group.port["multi-vm"]=port5
  </code></pre>
  
  <p>We are running into issues with the ehcache and lucene clustering not working. The following tests fail :</p>
  
  <ol>
  <li>Moving a portlet on node 1, does not show up on node 2</li>
  </ol>
  
  <p>There are no errors except for a startup error with lucene. </p>
  
  <blockquote>
    <p>14:19:35,771 ERROR
    [CLUSTER_EXECUTOR_CALLBACK_THREAD_POOL-1][LuceneHelperImpl:1186]
    Unable to load index for company 10157
    com.liferay.portal.kernel.exception.SystemException:
    java.net.ConnectException: Connection refused     at
    com.liferay.portal.search.lucene.LuceneHelperImpl.getLoadIndexesInputStreamFromCluster(LuceneHelperImpl.java:488)
      at
    com.liferay.portal.search.lucene.LuceneHelperImpl$LoadIndexClusterResponseCallback.callback(LuceneHelperImpl.java:1176)
      at
    com.liferay.portal.cluster.ClusterExecutorImpl$ClusterResponseCallbackJob.run(ClusterExecutorImpl.java:614)
      at
    com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      at
    com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      at java.lang.Thread.run(Thread.java:745) Caused by:
    java.net.ConnectException: Connection refused     at
    java.net.PlainSocketImpl.socketConnect(Native Method)     at
    java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      at
    java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      at
    java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)   at
    java.net.Socket.connect(Socket.java:579)  at
    sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)    at
    sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:180)  at
    sun.net.www.http.HttpClient.openServer(HttpClient.java:432)   at
    sun.net.www.http.HttpClient.openServer(HttpClient.java:527)   at
    sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:275)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)</p>
  </blockquote>
  
  <p>We verified that the jgroups multicast works outside of liferay by running the following commands and using a downloaded copy of the jgroups.jar and replacing with the 5 multicast ips and ports.</p>
  
  <pre><code>Testing with JGROUPS
  
  1) McastReceiver -
  
  java -cp ./jgroups.jar org.jgroups.tests.McastReceiverTest -mcast_addr 224.10.10.10 -port 5555
  
  ex. java -cp jgroups-final.jar org.jgroups.tests.McastReceiverTest -mcast_addr 224.10.10.10 -port 5555
  
  2) McastSender -
  
  java -cp ./jgroups.jar org.jgroups.tests.McastSenderTest -mcast_addr 224.10.10.10 -port 5555
  
  ex. java -cp jgroups-final.jar org.jgroups.tests.McastSenderTest -mcast_addr 224.10.10.10 -port 5555
  
  From there, typing things into the McastSender will result in the Receiver printing it out.
  </code></pre>
  
  <p>Thanks!</p>