You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <rt...@gmail.com> on 2012/02/02 11:17:34 UTC
help debug cluster error --java.net.BindException: Cannot assign
requested address
Hello,
I have two centos servers running tomcat 5.5 (yeah i know its old)
one of the servers died and i had to rebuild from scratch. Everything
is working but the clustering.
is there anything between the cluster configs that needs to be
different? I just copied one to the other. I had it working ok before
server 2 crashed, so i know server 1 is configured ok and that is what
i copied from
when i start tomcat i get
SEVERE: Unable to start cluster listener.
java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListener.java:120)
at org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverBase.java:394)
at java.lang.Thread.run(Thread.java:595)
when i created the new server i just copied the tomcat dir and placed
it on the rebuild server.
in my server.xml(see below) i put an ip in tcpListenAddress instead
of auto because i have muiltiple IPS
any suggestions on how to debug this?
thanks for any help
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
doClusterLog="true"
clusterLogName="clusterlog"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.9"
mcastPort="45564"
mcastFrequency="500"
recoveryEnabled="true"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="192.168.0.203"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="35"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;"/>
<ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
</Cluster>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: help debug cluster error --java.net.BindException: Cannot assign
requested address
Posted by Pid <pi...@pidster.com>.
On 02/02/2012 15:34, Randy Paries wrote:
> Pid
> so tcpListenAddress should be the IP of the machine correct?
>
> thanks thats probably it
Yep.
p
> On Thu, Feb 2, 2012 at 5:28 AM, Pid <pi...@pidster.com> wrote:
>> On 02/02/2012 10:17, Randy Paries wrote:
>>> Hello,
>>> I have two centos servers running tomcat 5.5 (yeah i know its old)
>>>
>>> one of the servers died and i had to rebuild from scratch. Everything
>>> is working but the clustering.
>>>
>>> is there anything between the cluster configs that needs to be
>>> different? I just copied one to the other. I had it working ok before
>>> server 2 crashed, so i know server 1 is configured ok and that is what
>>> i copied from
>>>
>>> when i start tomcat i get
>>>
>>> SEVERE: Unable to start cluster listener.
>>> java.net.BindException: Cannot assign requested address
>>> at sun.nio.ch.Net.bind(Native Method)
>>> at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
>>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
>>> at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListener.java:120)
>>> at org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverBase.java:394)
>>> at java.lang.Thread.run(Thread.java:595)
>>>
>>> when i created the new server i just copied the tomcat dir and placed
>>> it on the rebuild server.
>>> in my server.xml(see below) i put an ip in tcpListenAddress instead
>>> of auto because i have muiltiple IPS
>>>
>>> any suggestions on how to debug this?
>>>
>>> thanks for any help
>>>
>>> <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
>>> doClusterLog="true"
>>> clusterLogName="clusterlog"
>>>
>>> managerClassName="org.apache.catalina.cluster.session.DeltaManager"
>>> expireSessionsOnShutdown="false"
>>> useDirtyFlag="true"
>>> notifyListenersOnReplication="true">
>>>
>>> <Membership
>>> className="org.apache.catalina.cluster.mcast.McastService"
>>> mcastAddr="228.0.0.9"
>>> mcastPort="45564"
>>> mcastFrequency="500"
>>> recoveryEnabled="true"
>>> mcastDropTime="3000"/>
>>>
>>> <Receiver
>>> className="org.apache.catalina.cluster.tcp.ReplicationListener"
>>> tcpListenAddress="192.168.0.203"
>>> tcpListenPort="4001"
>>> tcpSelectorTimeout="100"
>>> tcpThreadCount="35"/>
>>
>> Is the IP address above correct (192.168.0.203) for this server?
>> You stated that you 'just copied it' - if you didn't change the IP, it's
>> probably not correct.
>>
>>
>> p
>>
>>> <Sender
>>>
>>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
>>> replicationMode="pooled"
>>> ackTimeout="15000"/>
>>>
>>> <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
>>>
>>> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;"/>
>>>
>>> <ClusterListener
>>> className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
>>> </Cluster>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>> --
>>
>> [key:62590808]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
[key:62590808]
Re: help debug cluster error --java.net.BindException: Cannot assign
requested address
Posted by Randy Paries <rt...@gmail.com>.
Pid
so tcpListenAddress should be the IP of the machine correct?
thanks thats probably it
On Thu, Feb 2, 2012 at 5:28 AM, Pid <pi...@pidster.com> wrote:
> On 02/02/2012 10:17, Randy Paries wrote:
>> Hello,
>> I have two centos servers running tomcat 5.5 (yeah i know its old)
>>
>> one of the servers died and i had to rebuild from scratch. Everything
>> is working but the clustering.
>>
>> is there anything between the cluster configs that needs to be
>> different? I just copied one to the other. I had it working ok before
>> server 2 crashed, so i know server 1 is configured ok and that is what
>> i copied from
>>
>> when i start tomcat i get
>>
>> SEVERE: Unable to start cluster listener.
>> java.net.BindException: Cannot assign requested address
>> at sun.nio.ch.Net.bind(Native Method)
>> at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
>> at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListener.java:120)
>> at org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverBase.java:394)
>> at java.lang.Thread.run(Thread.java:595)
>>
>> when i created the new server i just copied the tomcat dir and placed
>> it on the rebuild server.
>> in my server.xml(see below) i put an ip in tcpListenAddress instead
>> of auto because i have muiltiple IPS
>>
>> any suggestions on how to debug this?
>>
>> thanks for any help
>>
>> <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
>> doClusterLog="true"
>> clusterLogName="clusterlog"
>>
>> managerClassName="org.apache.catalina.cluster.session.DeltaManager"
>> expireSessionsOnShutdown="false"
>> useDirtyFlag="true"
>> notifyListenersOnReplication="true">
>>
>> <Membership
>> className="org.apache.catalina.cluster.mcast.McastService"
>> mcastAddr="228.0.0.9"
>> mcastPort="45564"
>> mcastFrequency="500"
>> recoveryEnabled="true"
>> mcastDropTime="3000"/>
>>
>> <Receiver
>> className="org.apache.catalina.cluster.tcp.ReplicationListener"
>> tcpListenAddress="192.168.0.203"
>> tcpListenPort="4001"
>> tcpSelectorTimeout="100"
>> tcpThreadCount="35"/>
>
> Is the IP address above correct (192.168.0.203) for this server?
> You stated that you 'just copied it' - if you didn't change the IP, it's
> probably not correct.
>
>
> p
>
>> <Sender
>>
>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
>> replicationMode="pooled"
>> ackTimeout="15000"/>
>>
>> <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
>>
>> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;"/>
>>
>> <ClusterListener
>> className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
>> </Cluster>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> --
>
> [key:62590808]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: help debug cluster error --java.net.BindException: Cannot assign
requested address
Posted by Pid <pi...@pidster.com>.
On 02/02/2012 10:17, Randy Paries wrote:
> Hello,
> I have two centos servers running tomcat 5.5 (yeah i know its old)
>
> one of the servers died and i had to rebuild from scratch. Everything
> is working but the clustering.
>
> is there anything between the cluster configs that needs to be
> different? I just copied one to the other. I had it working ok before
> server 2 crashed, so i know server 1 is configured ok and that is what
> i copied from
>
> when i start tomcat i get
>
> SEVERE: Unable to start cluster listener.
> java.net.BindException: Cannot assign requested address
> at sun.nio.ch.Net.bind(Native Method)
> at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
> at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListener.java:120)
> at org.apache.catalina.cluster.tcp.ClusterReceiverBase.run(ClusterReceiverBase.java:394)
> at java.lang.Thread.run(Thread.java:595)
>
> when i created the new server i just copied the tomcat dir and placed
> it on the rebuild server.
> in my server.xml(see below) i put an ip in tcpListenAddress instead
> of auto because i have muiltiple IPS
>
> any suggestions on how to debug this?
>
> thanks for any help
>
> <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
> doClusterLog="true"
> clusterLogName="clusterlog"
>
> managerClassName="org.apache.catalina.cluster.session.DeltaManager"
> expireSessionsOnShutdown="false"
> useDirtyFlag="true"
> notifyListenersOnReplication="true">
>
> <Membership
> className="org.apache.catalina.cluster.mcast.McastService"
> mcastAddr="228.0.0.9"
> mcastPort="45564"
> mcastFrequency="500"
> recoveryEnabled="true"
> mcastDropTime="3000"/>
>
> <Receiver
> className="org.apache.catalina.cluster.tcp.ReplicationListener"
> tcpListenAddress="192.168.0.203"
> tcpListenPort="4001"
> tcpSelectorTimeout="100"
> tcpThreadCount="35"/>
Is the IP address above correct (192.168.0.203) for this server?
You stated that you 'just copied it' - if you didn't change the IP, it's
probably not correct.
p
> <Sender
>
> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
> replicationMode="pooled"
> ackTimeout="15000"/>
>
> <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
>
> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;"/>
>
> <ClusterListener
> className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
> </Cluster>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
[key:62590808]