Tomcat 7集群模式,未识别出错误的成员

时间:2013-04-03 11:04:41

标签: tomcat

我正在尝试活动tomcats SimpleTcpCluster,如下所述:http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html

我在标签之外添加了以下行:

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" defaultMode="true" />

但是在启动tomcat时我在日志中唯一得到的是:

Caused by: org.apache.catalina.LifecycleException: org.apache.catalina.tribes.ChannelException: java.net.BindException: Die angeforderte Adresse kann nicht zugewiesen werden; No faulty members identified.
at org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:660)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 14 more

组播本身有效,防火墙被禁用,没有第二个tomcat既不在机器上也不在集群中运行。

1 个答案:

答案 0 :(得分:0)

问题是/ etc / hosts文件中的错误