tomcat: java.net.SocketException: IP_ADD_MEMBERSHIP failed

今天 一起又启动tomcat发现出现了这个错误,昨天艰难配置好的apache+tomcat负载均衡,又出错了
信息: Setting cluster mcast soTimeout to 500
2011-8-3 8:27:42 org.apache.catalina.tribes.membership.McastServiceImpl start
严重: Unable to join multicast group, make sure your system has multicasting enabled.
2011-8-3 8:27:42 org.apache.catalina.ha.tcp.SimpleTcpCluster startInternal
严重: Unable to start cluster.
org.apache.catalina.tribes.ChannelException: java.net.SocketException: IP_ADD_MEMBERSHIP failed (out of hardware filters?); No
lty members identified.
        at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:178)
        at org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:99)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:150)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:150)
        at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:153)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:150)
        at org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:416)
        at org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:653)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1024)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Caused by: java.net.SocketException: IP_ADD_MEMBERSHIP failed (out of hardware filters?)
        at java.net.PlainDatagramSocketImpl.join(Native Method)
        at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172)
        at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276)
        at org.apache.catalina.tribes.membership.McastServiceImpl.start(McastServiceImpl.java:254)
        at org.apache.catalina.tribes.membership.McastService.start(McastService.java:441)
        at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:163)
        ... 22 more
2011-8-3 8:27:42 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
org.apache.catalina.LifecycleException: org.apache.catalina.tribes.ChannelException: java.net.SocketException: IP_ADD_MEMBERSH
ailed (out of hardware filters?); No faulty members identified.
        at org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:660)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1024)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Caused by: org.apache.catalina.tribes.ChannelException: java.net.SocketException: IP_ADD_MEMBERSHIP failed (out of hardware fi
s?); No faulty members identified.
        at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:178)
        at org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:99)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:150)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:150)
        at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:153)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:150)
        at org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:416)
        at org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:653)
        ... 15 more
Caused by: java.net.SocketException: IP_ADD_MEMBERSHIP failed (out of hardware filters?)
        at java.net.PlainDatagramSocketImpl.join(Native Method)
        at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172)
        at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276)
        at org.apache.catalina.tribes.membership.McastServiceImpl.start(McastServiceImpl.java:254)
        at org.apache.catalina.tribes.membership.McastService.start(McastService.java:441)
        at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:163)
        ... 22 more
2011-8-3 8:27:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 170 ms

这个错误信息肯定是ip地址错误,我用的是电信:星空极速 3.3,上的网,它会在我的连接里进行添加一个Vnet_PPPoE连接,ip不是本地连接的ip,所以在启动tomcat的时候,就会出错,因为没有可用的网关。

如果把星空极速退出去再启动就 不会出错了。呵呵……

你可能感兴趣的:(JOIN,tomcat,server,负载均衡,System,电信)