日期:2014-05-18  浏览次数:20794 次

tomcat集群问题? 当tomcat在不同物理机器时, 在tomcat2中我把mcastBindAddress="127.16.1.30"改成tomcat1所在的IP地址,为什么不能绑定
2007-4-18   14:27:27   org.apache.catalina.cluster.tcp.SimpleTcpCluster   start
SEVERE:   Unable   to   start   cluster.
java.net.BindException:   Cannot   assign   requested   address:   Cannot   bind
                at   java.net.PlainDatagramSocketImpl.bind0(Native   Method)
                at   java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82
)
                at   java.net.DatagramSocket.bind(DatagramSocket.java:368)
                at   java.net.MulticastSocket. <init> (MulticastSocket.java:147)
                at   org.apache.catalina.cluster.mcast.McastServiceImpl.setupSocket(McastS
erviceImpl.java:145)
                at   org.apache.catalina.cluster.mcast.McastServiceImpl. <init> (McastServic
eImpl.java:131)
                at   org.apache.catalina.cluster.mcast.McastService.start(McastService.jav
a:304)
                at   org.apache.catalina.cluster.mcast.McastService.start(McastService.jav
a:260)
                at   org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpClust
er.java:769)
                at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
 
                at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
                at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
 
                at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
                at   org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
                at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
                at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
                at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
                at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
                at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
                at   java.lang.reflect.Method.invoke(Method.java:585)
                at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
                at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-4-18   14:27:27   org.apache.cat