Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sebastian Sommerfeld
Liferay 6.2 ehcache cluster settings
August 26, 2014 1:59 AM
Answer

Sebastian Sommerfeld

Rank: Junior Member

Posts: 40

Join Date: December 6, 2010

Recent Posts

Hi guys

I'm having some trouble enabling clustering for my Liferay 6.2 installations. Basically I'm following this blog entry - even tough it's written for 6.1 and I'm using 6.2. So far I didn't have to adjust too much.
https://www.liferay.com/de/web/fimez/blog/-/blogs/configuring-a-liferay-cluster-and-make-it-use-unicast-

Since I cannot use multicasts for ehcache synchronisation I'm trying to use unicasts. And now I'm running into a strange phenomenon. Both Servers are using the same cluster configurations but they don't behave like one another. They are doing the same until this point:

10:36:37,841 INFO [ServerService Thread Pool -- 122][LiferayCacheManagerPeerProviderFactory:76] portalPropertyKey ehcache.multi.vm.config.location.peerProviderProperties has value file=/usr/jboss/liferay-6.1/cluster-config-unicast.xml

But now my first server continues its Startup process and logs several jgroups information (seems correct). The other one is stopping for a while (like it is waiting for a timeout) and then throws this exception:
 110:36:35,070 INFO  [ServerService Thread Pool -- 122][DialectDetector:71] Determine dialect for Oracle 11
 210:36:35,083 INFO  [ServerService Thread Pool -- 122][DialectDetector:136] Found dialect org.hibernate.dialect.Oracle10gDialect
 310:36:37,841 INFO  [ServerService Thread Pool -- 122][LiferayCacheManagerPeerProviderFactory:76] portalPropertyKey ehcache.multi.vm.config.location.peerProviderProperties has value file=/usr/jboss/liferay-6.1/cluster-config-unicast.xml
 410:42:59,360 ERROR [ServerService Thread Pool -- 122][PortalContextLoaderListener:132] java.lang.NullPointerException
 5java.lang.NullPointerException
 6        at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27)
 7        at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:129)
 8        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3427)
 9        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3920)
10        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3839)
11        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)
12        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
13        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
14        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
15        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
16        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
17        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
18        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
19        at java.lang.Thread.run(Thread.java:662)
20        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
2110:42:59,362 ERROR [ServerService Thread Pool -- 122][PortalContextLoaderListener:139] java.lang.NullPointerException
22java.lang.NullPointerException
23        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:53)
24        at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:136)
25        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3427)
26        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3920)
27        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3839)
28        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)
29        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
30        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
31        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
32        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
33        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
34        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
35        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
36        at java.lang.Thread.run(Thread.java:662)
37        at org.jboss.threads.JBossThread.run(JBossThread.java:122)


My unicast config XML file is attached and these are my settings from portal-ext.properties (same for both servers):
 1cluster.link.enabled=true
 2cluster.link.autodetect.address=10.170.121.184:1531
 3
 4net.sf.ehcache.configurationResourceName=/ehcache/hibernate-clustered.xml
 5#ehcache.multi.vm.config.location=/ehcache/liferay-multi-vm-clustered.xml
 6
 7cluster.link.channel.properties.control=/usr/jboss/liferay-6.1/cluster-config-unicast.xml
 8cluster.link.channel.properties.transport.0=/usr/jboss/liferay-6.1/cluster-config-unicast.xml
 9ehcache.bootstrap.cache.loader.factory=com.liferay.portal.cache.ehcache.JGroupsBootstrapCacheLoaderFactory
10ehcache.cache.event.listener.factory=net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory
11ehcache.cache.manager.peer.provider.factory=net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory
12net.sf.ehcache.configurationResourceName.peerProviderProperties=file=/usr/jboss/liferay-6.1/cluster-config-unicast.xml
13ehcache.multi.vm.config.location.peerProviderProperties=file=/usr/jboss/liferay-6.1/cluster-config-unicast.xml


10.170.121.184:1531 is my database so they are both able to reach this host.

Using jvm params -Djgroups.bind_addr and -Djgroups.tcpping.initial_hosts i not doing the trick. So now I'm not really having a clue why one system differs from the other. As mentioned configurations are basically identical.

Can someone help me out with this? I'd really appreciate it.

Thanks in advance and regards
Sebastian
Attachments: cluster-config-unicast.xml (2.6k)
Sebastian Sommerfeld
RE: Liferay 6.2 ehcache cluster settings
August 27, 2014 6:02 AM
Answer

Sebastian Sommerfeld

Rank: Junior Member

Posts: 40

Join Date: December 6, 2010

Recent Posts

Hi again

I did some additional resarch ... Seems like the problem is based on cluster link settings, not on multicast/unicast Settings. Without cluster.link.enabled and cluster.link.autodetect.address my server startd perfectly normal ...

Regards
Sebastian
Sebastian Sommerfeld
RE: Liferay 6.2 ehcache cluster settings
September 22, 2014 4:28 AM
Answer

Sebastian Sommerfeld

Rank: Junior Member

Posts: 40

Join Date: December 6, 2010

Recent Posts

I did some more Research on this topic and found a second exception (I guess this is the real cause).

  112:11:46,822 INFO  [org.jboss.web] (ServerService Thread Pool -- 127) JBAS018210: Register web context:
  212:11:47,832 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 127) Initializing Spring root WebApplicationContext
  312:18:12,760 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 127) JBWEB000287: Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.cache.MultiVMPool' defined in class path resource [META-INF/util-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.kernel.cache.MultiVMPortalCacheManager' while setting bean property 'portalCacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.cache.MultiVMPortalCacheManager' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#26eb6935' of type [com.liferay.portal.cache.ehcache.EhcachePortalCacheManager] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#26eb6935' defined in class path resource [META-INF/util-spring.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //15.131.81.31:53440/com.liferay.portal.kernel.dao.orm.EntityCache.com.liferay.portal.model.impl.ResourcePermissionImpl. Initial cause was Connection refused to host: 15.131.81.31; nested exception is:
  4    java.net.ConnectException: Connection timed out
  5    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) [spring-beans.jar:3.0.7.RELEASE]
  6    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) [spring-beans.jar:3.0.7.RELEASE]
  7    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327) [spring-beans.jar:3.0.7.RELEASE]
  8    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) [spring-beans.jar:3.0.7.RELEASE]
  9    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) [spring-beans.jar:3.0.7.RELEASE]
 10    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [spring-beans.jar:3.0.7.RELEASE]
 11    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) [spring-beans.jar:3.0.7.RELEASE]
 12    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans.jar:3.0.7.RELEASE]
 13    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) [spring-beans.jar:3.0.7.RELEASE]
 14    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) [spring-beans.jar:3.0.7.RELEASE]
 15    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) [spring-beans.jar:3.0.7.RELEASE]
 16    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context.jar:3.0.7.RELEASE]
 17    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context.jar:3.0.7.RELEASE]
 18    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) [spring-web.jar:3.0.7.RELEASE]
 19    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) [spring-web.jar:3.0.7.RELEASE]
 20    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web.jar:3.0.7.RELEASE]
 21    at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:233) [portal-impl.jar:]
 22    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
 23    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
 24    at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
 25    at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
 26    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final.jar:7.2.0.Final]
 27    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_29]
 28    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_29]
 29    at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_29]
 30    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]
 31    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]
 32    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
 33    at org.jboss.threads.JBossThread.run(JBossThread.java:122)
 34Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.cache.MultiVMPortalCacheManager' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#26eb6935' of type [com.liferay.portal.cache.ehcache.EhcachePortalCacheManager] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#26eb6935' defined in class path resource [META-INF/util-spring.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //15.131.81.31:53440/com.liferay.portal.kernel.dao.orm.EntityCache.com.liferay.portal.model.impl.ResourcePermissionImpl. Initial cause was Connection refused to host: 15.131.81.31; nested exception is:
 35    java.net.ConnectException: Connection timed out
 36    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) [spring-beans.jar:3.0.7.RELEASE]
 37    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) [spring-beans.jar:3.0.7.RELEASE]
 38    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630) [spring-beans.jar:3.0.7.RELEASE]
 39    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:441) [spring-beans.jar:3.0.7.RELEASE]
 40    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:982) [spring-beans.jar:3.0.7.RELEASE]
 41    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:878) [spring-beans.jar:3.0.7.RELEASE]
 42    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484) [spring-beans.jar:3.0.7.RELEASE]
 43    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [spring-beans.jar:3.0.7.RELEASE]
 44    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) [spring-beans.jar:3.0.7.RELEASE]
 45    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans.jar:3.0.7.RELEASE]
 46    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) [spring-beans.jar:3.0.7.RELEASE]
 47    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) [spring-beans.jar:3.0.7.RELEASE]
 48    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) [spring-beans.jar:3.0.7.RELEASE]
 49    ... 28 more
 50Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.cache.ehcache.EhcachePortalCacheManager#26eb6935' defined in class path resource [META-INF/util-spring.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //15.131.81.31:53440/com.liferay.portal.kernel.dao.orm.EntityCache.com.liferay.portal.model.impl.ResourcePermissionImpl. Initial cause was Connection refused to host: 15.131.81.31; nested exception is:
 51    java.net.ConnectException: Connection timed out
 52    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422) [spring-beans.jar:3.0.7.RELEASE]
 53    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) [spring-beans.jar:3.0.7.RELEASE]
 54    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [spring-beans.jar:3.0.7.RELEASE]
 55    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) [spring-beans.jar:3.0.7.RELEASE]
 56    ... 40 more
 57Caused by: net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //15.131.81.31:53440/com.liferay.portal.kernel.dao.orm.EntityCache.com.liferay.portal.model.impl.ResourcePermissionImpl. Initial cause was Connection refused to host: 15.131.81.31; nested exception is:
 58    java.net.ConnectException: Connection timed out
 59    at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:538) [ehcache.jar:]
 60    at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:159) [ehcache.jar:]
 61    at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1408) [ehcache.jar:]
 62    at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:798) [ehcache.jar:]
 63    at net.sf.ehcache.CacheManager.doInit(CacheManager.java:485) [ehcache.jar:]
 64    at net.sf.ehcache.CacheManager.init(CacheManager.java:392) [ehcache.jar:]
 65    at net.sf.ehcache.CacheManager.<init>(CacheManager.java:266) [ehcache.jar:]
 66    at com.liferay.portal.cache.ehcache.CacheManagerUtil.createCacheManager(CacheManagerUtil.java:38) [portal-impl.jar:]
 67    at com.liferay.portal.cache.ehcache.EhcachePortalCacheManager.afterPropertiesSet(EhcachePortalCacheManager.java:77) [portal-impl.jar:]
 68    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_29]
 69    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_29]
 70    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_29]
 71    at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_29]
 72    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546) [spring-beans.jar:3.0.7.RELEASE]
 73    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487) [spring-beans.jar:3.0.7.RELEASE]
 74    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419) [spring-beans.jar:3.0.7.RELEASE]
 75    ... 43 more
 76Caused by: java.rmi.ConnectException: Connection refused to host: 15.131.81.31; nested exception is:
 77    java.net.ConnectException: Connection timed out
 78    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601) [rt.jar:1.6.0_29]
 79    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) [rt.jar:1.6.0_29]
 80    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) [rt.jar:1.6.0_29]
 81    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) [rt.jar:1.6.0_29]
 82    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) [rt.jar:1.6.0_29]
 83    at java.rmi.Naming.rebind(Naming.java:160) [rt.jar:1.6.0_29]
 84    at net.sf.ehcache.distribution.RMICacheManagerPeerListener.bind(RMICacheManagerPeerListener.java:234) [ehcache.jar:]
 85    at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:536) [ehcache.jar:]
 86    ... 58 more
 87Caused by: java.net.ConnectException: Connection timed out
 88    at java.net.PlainSocketImpl.socketConnect(Native Method) [rt.jar:1.6.0_29]
 89    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) [rt.jar:1.6.0_29]
 90    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) [rt.jar:1.6.0_29]
 91    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) [rt.jar:1.6.0_29]
 92    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) [rt.jar:1.6.0_29]
 93    at java.net.Socket.connect(Socket.java:529) [rt.jar:1.6.0_29]
 94    at java.net.Socket.connect(Socket.java:478) [rt.jar:1.6.0_29]
 95    at java.net.Socket.<init>(Socket.java:375) [rt.jar:1.6.0_29]
 96    at java.net.Socket.<init>(Socket.java:189) [rt.jar:1.6.0_29]
 97    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) [rt.jar:1.6.0_29]
 98    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) [rt.jar:1.6.0_29]
 99    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) [rt.jar:1.6.0_29]
100    ... 65 more
101
10212:18:12,774 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 127) JBWEB001103: Error detected during context  start, will stop it
10312:18:12,796 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 127) Closing Spring root WebApplicationContext
10412:18:12,816 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 127) MSC00001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
105    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
106    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_29]
107    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_29]
108    at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_29]
109    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]
110    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]
111    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
112    at org.jboss.threads.JBossThread.run(JBossThread.java:122)
113Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
114    at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)
115    at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
116    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
117    ... 7 more
118
11912:18:13,062 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "liferay-marketplace-portlet.war" (runtime-name : "marketplace-portlet.war")
12012:18:13,063 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "liferay-portal-6.2-ee-sp7-20140807114015311.war" (runtime-name : "liferay-portal-6.2-ee-sp7-20140807114015311.war")
12112:18:13,066 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
122JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
123
12412:18:13,070 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.2.0.Final "Janus" started (with errors) in 405064ms - Started 1695 of 1814 services (2 services failed or missing dependencies, 115 services are passive or on-demand)


The Problem should be related to this log-entry: Caused by: net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //15.131.81.31:53440/com.liferay.portal.kernel.dao.orm.EntityCache.com.liferay.portal.model.impl.ResourcePermissionImpl. Initial cause was Connection refused to host: 15.131.81.31; nested exception is ...

I never set 15.131.81.31:53440 anywhere in my config. This IP is not even part of my network. Where does this Setting come from? My server is not able to ping this host. Is this some Kind of default/fallback IP?
Vilmos Papp
RE: Liferay 6.2 ehcache cluster settings
September 22, 2014 4:39 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 463

Join Date: October 21, 2010

Recent Posts

Hi,

I think I know what's the problem. Please check your multi-vm-clustered.xml and hibernate-clustered.xml. By default, the RMI replication is specified in both. To make it use unicast and bypass RMI, you should modify those xmls as well to use the proper one for unicast.

If you are running on EE version no need to modify those files unless you want to customize the caches, just deploy the EhCache Cluster Web plugin.

Regards,
Vilmso