Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
ramathulasi kudumula
ROOT.war is not deploying after EHCache configuration in cluster
April 14, 2014 5:12 AM
Answer

ramathulasi kudumula

Rank: New Member

Posts: 17

Join Date: October 5, 2011

Recent Posts

Hi,

I want to implement the Cache to share the data across the portlets in multiple nodes. I did the configuration by referring the URL(http://rutvijshah.wordpress.com/tag/liferay/) in liferay portal 6.2.
I have started the server and try to deploy the ROOT.war.dodeploy file, I got the below exception and due to this ROOT.war deployment has failed.

11:34:21,767 INFO (MSC service thread 1-4) 11:34:21,766 INFO [MSC service thread 1-4][ClusterBase:142] Autodetecting JGroups outgoing IP address and interface for www.google.com:80

11:34:43,880 INFO (MSC service thread 1-4) 11:34:43,878 WARN [MSC service thread 1-4][ClusterBase:56] Failed to initialize outgoing IP address

11:34:43,881 INFO (MSC service thread 1-4) java.net.ConnectException: Connection timed out: connect

11:34:43,882 INFO (MSC service thread 1-4) at java.net.PlainSocketImpl.socketConnect(Native Method)

11:34:43,883 INFO (MSC service thread 1-4) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

11:34:43,884 INFO (MSC service thread 1-4) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

11:34:43,885 INFO (MSC service thread 1-4) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

11:34:43,886 INFO (MSC service thread 1-4) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

11:34:43,887 INFO (MSC service thread 1-4) at java.net.Socket.connect(Socket.java:529)

11:34:43,888 INFO (MSC service thread 1-4) at java.net.Socket.connect(Socket.java:478)

11:34:43,889 INFO (MSC service thread 1-4) at java.net.Socket.<init>(Socket.java:375)

11:34:43,889 INFO (MSC service thread 1-4) at java.net.Socket.<init>(Socket.java:189)

11:34:43,890 INFO (MSC service thread 1-4) at com.liferay.portal.kernel.util.SocketUtil.getBindInfo(SocketUtil.java:67)

11:34:43,891 INFO (MSC service thread 1-4) at com.liferay.portal.cluster.ClusterBase.initBindAddress(ClusterBase.java:147)

11:34:43,893 INFO (MSC service thread 1-4) at com.liferay.portal.cluster.ClusterBase.afterPropertiesSet(ClusterBase.java:52)

11:34:43,897 INFO (MSC service thread 1-4) at com.liferay.portal.cluster.ClusterExecutorImpl.afterPropertiesSet(ClusterExecutorImpl.java:95)

11:34:43,898 INFO (MSC service thread 1-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

11:34:43,899 INFO (MSC service thread 1-4) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

11:34:43,900 INFO (MSC service thread 1-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

11:34:43,901 INFO (MSC service thread 1-4) at java.lang.reflect.Method.invoke(Method.java:597)

11:34:43,902 INFO (MSC service thread 1-4) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)

11:34:43,904 INFO (MSC service thread 1-4) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)

11:34:43,908 INFO (MSC service thread 1-4) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)

11:34:43,910 INFO (MSC service thread 1-4) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)

11:34:43,917 INFO (MSC service thread 1-4) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

11:34:43,919 INFO (MSC service thread 1-4) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)


Liferay Portal : 6.2 + Jboss 7.1

Can anybody help me to resolve this issue?

Thank you in advanced.

Regards,
Thulasi
David H Nebinger
RE: ROOT.war is not deploying after EHCache configuration in cluster
April 14, 2014 5:38 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7867

Join Date: September 1, 2006

Recent Posts

Okay, this error has nothing at all to do w/ liferay or root.war deployment.

The error is totally on your jgroups (cache) configuration.
ramathulasi kudumula
RE: ROOT.war is not deploying after EHCache configuration in cluster
April 18, 2014 2:48 AM
Answer

ramathulasi kudumula

Rank: New Member

Posts: 17

Join Date: October 5, 2011

Recent Posts

Thanks David for reply..

This issue is resolved from our end now.

Regards
Thulasi
Ankur Srivastava
RE: ROOT.war is not deploying after EHCache configuration in cluster
May 16, 2014 8:12 AM
Answer

Ankur Srivastava

Rank: Junior Member

Posts: 53

Join Date: November 8, 2008

Recent Posts

ramathulasi kudumula:
Thanks David for reply..

This issue is resolved from our end now.

Regards
Thulasi


Hi Thulasi,

We are also facing similar issue. Can you please share how you got this resolved, which settings helped ?

Thanks,
Ankur
Manjula Masilamani
RE: ROOT.war is not deploying after EHCache configuration in cluster
May 30, 2014 8:55 AM
Answer

Manjula Masilamani

Rank: New Member

Posts: 1

Join Date: July 24, 2013

Recent Posts

Hi,

We are also facing similar issue. Can you please share how you got this resolved, which settings helped ?

11:44:51,370 INFO [LiferayCacheManagerPeerProviderFactory:76] portalPropertyKey net.sf.ehcache.configurationResourceName.peerProviderProperties has value peerDiscovery=automatic,multicastGroupAddress=239.255.0.44,multicastGroupPort=23304,timeToLive=1
11:44:51,389 ERROR [MulticastRMICacheManagerPeerProvider:98] Error starting heartbeat. Error was: No such device
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:88)

Thanks,
Manjula
Andew Jardine
RE: ROOT.war is not deploying after EHCache configuration in cluster
May 30, 2014 1:46 PM
Answer

Andew Jardine

Rank: Expert

Posts: 314

Join Date: December 22, 2010

Recent Posts

Manjula,

Are you using A vritualized environment? or are you using physical iron? The reason I ask is that there are two common errors.

1. The network is not configured to allow multicast traffic

2. Multicast does not always work properly in a virtual configration

... also, if you are following the same blog post, it is worth noting that the last edit date on that article was 2009 which would have been Liferay 5.2 I think. If you are in a VM environment it might be a better idea to try a Unicast configuration using TCP.