I am setting up 2 nodes and starting clustering b/w these 2 instances. I
have latest code from trunk. Changes I made to ofbiz-containers.xml: jvm-route -> server1 mcast-bind-addr -> 10.0.0.136 I tried a lot of other combinations but no matter what I do, I am getting following exception : 26046 [main] INFO org.apache.catalina.core.StandardService - Starting service Tomcat 26046 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/7.0.27 26058 [pool-1-thread-1] INFO org.apache.catalina.ha.tcp.SimpleTcpCluster - Cluster is about to start 26103 [pool-1-thread-1] INFO org.apache.catalina.tribes.transport.ReceiverBase - Receiver Server Socket bound to:/10.0.0.136:4001 26142 [pool-1-thread-1] INFO org.apache.catalina.tribes.membership.McastService - Attempting to bind the multicast socket to /228.0.0.4:45564 26151 [pool-1-thread-1] INFO org.apache.catalina.tribes.membership.McastService - Setting multihome multicast interface to:/10.0.0.136 26151 [pool-1-thread-1] INFO org.apache.catalina.tribes.membership.McastService - Setting cluster mcast soTimeout to 500 26158 [pool-1-thread-1] INFO org.apache.catalina.tribes.membership.McastService - Sleeping for 1000 milliseconds to establish cluster membership, start level:4 27158 [pool-1-thread-1] INFO org.apache.catalina.tribes.membership.McastService - Done sleeping, membership established, start level:4 27160 [pool-1-thread-1] ERROR org.apache.catalina.ha.tcp.SimpleTcpCluster - Unable to start cluster. 27162 [main] ERROR org.apache.catalina.core.ContainerBase - A child container failed during start org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.catalina.container.CatalinaContainer (org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]] (Failed to start component [StandardServer[-1]])) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:232) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) org.ofbiz.base.container.ContainerException: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]] (Failed to start component [StandardServer[-1]]) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:240) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) ... 4 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Tomcat]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 5 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[default-server]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1136) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more org.ofbiz.base.container.ContainerException: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]] (Failed to start component [StandardServer[-1]]) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:240) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) ... 4 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Tomcat]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 5 more -- Thanks, Deepak Agarwal, Paxcel Technologies Pvt Ltd. Hartron Complex, Sector 18, Gurgaon, India. E-Mail: [hidden email] Mobile: +91 9910322604 |
The problem is IPv6 . It needs to be explicitly disabled in linux. Once I
did that, atleast it get to work. Following I added to /etc/sysctl.conf # Disable IPv6 net.ipv6.conf.all.disable_ipv6 = 1 (It turns out that IPV6INIT=no in ifcfg-eth0 doesn't work and doesn't stop IPv6) On Sun, May 13, 2012 at 3:00 AM, Deepak Agarwal <[hidden email]>wrote: > I am setting up 2 nodes and starting clustering b/w these 2 instances. I > have latest code from trunk. > Changes I made to ofbiz-containers.xml: > > jvm-route -> server1 > mcast-bind-addr -> 10.0.0.136 > > I tried a lot of other combinations but no matter what I do, I am getting > following exception : > > 26046 [main] INFO org.apache.catalina.core.StandardService - Starting > service Tomcat > 26046 [main] INFO org.apache.catalina.core.StandardEngine - Starting > Servlet Engine: Apache Tomcat/7.0.27 > 26058 [pool-1-thread-1] INFO org.apache.catalina.ha.tcp.SimpleTcpCluster - > Cluster is about to start > 26103 [pool-1-thread-1] INFO > org.apache.catalina.tribes.transport.ReceiverBase - Receiver Server Socket > bound to:/10.0.0.136:4001 > 26142 [pool-1-thread-1] INFO > org.apache.catalina.tribes.membership.McastService - Attempting to bind the > multicast socket to /228.0.0.4:45564 > 26151 [pool-1-thread-1] INFO > org.apache.catalina.tribes.membership.McastService - Setting multihome > multicast interface to:/10.0.0.136 > 26151 [pool-1-thread-1] INFO > org.apache.catalina.tribes.membership.McastService - Setting cluster mcast > soTimeout to 500 > 26158 [pool-1-thread-1] INFO > org.apache.catalina.tribes.membership.McastService - Sleeping for 1000 > milliseconds to establish cluster membership, start level:4 > 27158 [pool-1-thread-1] INFO > org.apache.catalina.tribes.membership.McastService - Done sleeping, > membership established, start level:4 > 27160 [pool-1-thread-1] ERROR org.apache.catalina.ha.tcp.SimpleTcpCluster > - Unable to start cluster. > 27162 [main] ERROR org.apache.catalina.core.ContainerBase - A child > container failed during start > org.ofbiz.base.start.StartupException: Cannot start() > org.ofbiz.catalina.container.CatalinaContainer > (org.apache.catalina.LifecycleException: Failed to start component > [StandardServer[-1]] (Failed to start component [StandardServer[-1]])) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:232) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > org.ofbiz.base.container.ContainerException: > org.apache.catalina.LifecycleException: Failed to start component > [StandardServer[-1]] (Failed to start component [StandardServer[-1]]) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:240) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [StandardServer[-1]] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > ... 4 more > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [StandardService[Tomcat]] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 5 more > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [StandardEngine[default-server]] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 7 more > Caused by: org.apache.catalina.LifecycleException: A child container > failed during start > at > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1136) > at > org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 9 more > org.ofbiz.base.container.ContainerException: > org.apache.catalina.LifecycleException: Failed to start component > [StandardServer[-1]] (Failed to start component [StandardServer[-1]]) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:240) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [StandardServer[-1]] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > ... 4 more > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [StandardService[Tomcat]] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 5 more > > -- > Thanks, > Deepak Agarwal, > > Paxcel Technologies Pvt Ltd. > Hartron Complex, Sector 18, Gurgaon, India. > E-Mail: [hidden email] > Mobile: +91 9910322604 > > -- Thanks, Deepak Agarwal, Paxcel Technologies Pvt Ltd. Hartron Complex, Sector 18, Gurgaon, India. E-Mail: [hidden email] Mobile: +91 9910322604 |
Free forum by Nabble | Edit this page |