Bug 27259 - org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress
Summary: org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress
Status: RESOLVED WORKSFORME
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina:Cluster (show other bugs)
Version: 5.0.19
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-26 15:37 UTC by Alex Dolgy
Modified: 2005-10-20 00:26 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Dolgy 2004-02-26 15:37:47 UTC
"auto" is no longer supported it would appear.

Feb 26, 2004 3:34:09 PM 
org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run
WARNING: Unable to send mcast message.
java.net.UnknownHostException: auto
        at java.net.InetAddress.getAllByName0(InetAddress.java:1016)
        at java.net.InetAddress.getAllByName0(InetAddress.java:981)
        at java.net.InetAddress.getAllByName(InetAddress.java:975)
        at java.net.InetAddress.getByName(InetAddress.java:889)
        at org.apache.catalina.cluster.mcast.McastMember.getData
(McastMember.java:169)
        at org.apache.catalina.cluster.mcast.McastServiceImpl.send
(McastServiceImpl.java:236)
        at org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run
(McastServiceImpl.java:274)
Comment 1 Filip Hanik 2004-03-04 16:02:28 UTC
It would be helpful if you attached your config file, auto seems to work fine 
for me. Auto is still supported.
Comment 2 Alex Dolgy 2004-03-04 16:48:56 UTC
if tcpListenAddress="10.10.12.25" is changed to tcpListenAddress="auto" it fails

<?xml version='1.0' encoding='utf-8'?>
<Server>
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <Resource auth="Container" description="User database that can be updated 
and saved" name="UserDatabase" type="org.apache.
catalina.UserDatabase"/>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>
  </GlobalNamingResources>
  <Service name="Catalina">
    <Connector acceptCount="100" connectionTimeout="20000" 
disableUploadTimeout="true" port="8080" redirectPort="8443" debug="
4">
    </Connector>
    <Connector port="8009" protocol="AJP/1.3" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="84
43" debug="4">
    </Connector>
    <Engine defaultHost="localhost" name="Catalina" debug="4">

      <Host appBase="webapps" name="localhost" unpackWARs="true" 
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="fa
lse">

        <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                 
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 debug="4"
                 useDirtyFlag="true">

            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastPort="45564"
                mcastFrequency="500"
                 debug="4"
                mcastDropTime="3000"/>

            <Receiver
                className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="10.10.12.25"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                 debug="4"
                tcpThreadCount="6"/>

            <Sender
                
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                 debug="4"
                replicationMode="asynchronous"/>

            <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
                 debug="4"
                   filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
        </Cluster>


        <Valve className="org.apache.catalina.authenticator.SingleSignOn"
                   debug="4"/>


        <Logger className="org.apache.catalina.logger.FileLogger" 
prefix="localhost_log." suffix=".txt" timestamp="true"/>
      </Host>
      <Logger className="org.apache.catalina.logger.FileLogger" 
prefix="catalina_log." suffix=".txt" timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
      <Valve className="org.apache.catalina.authenticator.SingleSignOn"/>
    </Engine>
  </Service>
</Server>
Comment 3 Peter Rossbach 2005-10-20 08:26:13 UTC
It works fro me! Are you sure that your IP adress is the default interface?