tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach ...@objektpark.de>
Subject Re: Tomcat 5.5.9 Cluster Error
Date Fri, 19 Aug 2005 13:53:57 GMT

Which OS you used and is your firewall open for UDP port

45564 and TCP 4001 ? Is your network interface enabled for Multicast
Packages ?

Why you used the deployer ?

Peter

SUGAHARA Toshio schrieb:

>Sorry, attached file was not sent and I'll try again.
>
>[error message]
>ERROR main
>org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable
>to start cluster.
> java.net.SocketException: error setting options
>	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.cluster.mcast.McastServiceImpl.start(McastServiceImpl.java:174)
>	at
>org.apache.catalina.cluster.mcast.McastService.start(McastService.java:217)
>	at
>org.apache.catalina.cluster.mcast.McastService.start(McastService.java:167)
>	at
>org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:418)
>	at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1002)
>	at
>org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>	at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>	at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>	at
>org.apache.catalina.core.StandardService.start(StandardService.java:450)
>	at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>	at
>org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>	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:585)
>	at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>	at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>ERROR main org.apache.catalina.startup.Catalina -
>Catalina.start: 
> LifecycleException:  java.net.SocketException: error
>setting options
>	at
>org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:434)
>	at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1002)
>	at
>org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>	at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>	at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>	at
>org.apache.catalina.core.StandardService.start(StandardService.java:450)
>	at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>	at
>org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>	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:585)
>	at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>	at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>
>  
>
>>Hi all,
>>
>>I'm building Tomcat Cluster environment on the same
>>box.
>>Configuring sevrer.xml and starting tomcat instance,
>>I got
>>error message as attached file.
>>
>>Here is my envrinment;
>>Apache:2.0.54 MPM worker
>>Tomcat:5.5.9
>>JK_Connector:mod_jk 1.2.14.1
>>JDK:J2SE 1.5.0_04
>>
>>Also, I modified web.xml and added
>>"<distributable/>".
>>
>>What am I missing? I'm at a loss.
>>Any help would be very much appreciated.
>>
>>Thanks
>>
>>
>>
>>__________________________________
>>Save the earth
>>http://pr.mail.yahoo.co.jp/ondanka/
>>    
>>
>>><!-- Example Server Configuration File -->
>>>      
>>>
>><!-- Note that component elements are nested
>>corresponding to their
>>     parent-child relationships with each other -->
>>
>><!-- A "Server" is a singleton element that
>>represents the entire JVM,
>>     which may contain one or more "Service"
>>instances.  The Server
>>     listens for a shutdown command on the indicated
>>port.
>>
>>     Note:  A "Server" is not itself a "Container",
>>so you may not
>>     define subcomponents such as "Valves" or
>>"Loggers" at this level.
>> -->
>>
>><Server port="8005" shutdown="SHUTDOWN">
>>
>>  <Listener
>>
>>    
>>
>className="org.apache.catalina.mbeans.ServerLifecycleListener"
>  
>
>>/>
>>  <Listener
>>
>>    
>>
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>  
>
>>/>
>>  <Listener
>>
>>    
>>
>className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
>  
>
>>  <!-- Global JNDI resources -->
>>  <GlobalNamingResources>
>>
>>    <!-- Test entry for demonstration purposes -->
>>    <Environment name="simpleValue"
>>type="java.lang.Integer" value="30"/>
>>
>>    <!-- Editable user database that can also be
>>used by
>>         UserDatabaseRealm to authenticate users -->
>>    <Resource name="UserDatabase" auth="Container"
>>             
>>type="org.apache.catalina.UserDatabase"
>>       description="User database that can be
>>updated and saved"
>>          
>>
>>    
>>
>factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>  
>
>>          pathname="conf/tomcat-users.xml" />
>>
>>  </GlobalNamingResources>
>>
>>  <!-- Define the Tomcat Stand-Alone Service -->
>>  <Service name="Catalina">
>>
>>    <Connector port="8080" maxHttpHeaderSize="8192"
>>               maxThreads="150" minSpareThreads="25"
>>maxSpareThreads="75"
>>               enableLookups="false"
>>redirectPort="8443" acceptCount="100"
>>               connectionTimeout="20000"
>>disableUploadTimeout="true" />
>>
>>    <!-- Define an AJP 1.3 Connector on port 8009
>>-->
>>    <Connector port="8009" 
>>               enableLookups="false"
>>redirectPort="8443" protocol="AJP/1.3" />
>>
>>
>>    <!-- Define the top level container in our
>>container hierarchy -->
>>    <Engine jvmRoot="lb1" name="Catalina"
>>defaultHost="localhost">
>>
>>      <Realm
>>className="org.apache.catalina.realm.UserDatabaseRealm"
>>             resourceName="UserDatabase"/>
>>
>>      <Host name="localhost" appBase="webapps"
>>       unpackWARs="true" autoDeploy="true"
>>       xmlValidation="false"
>>xmlNamespaceAware="false">
>>
>>        <Cluster
>>
>>    
>>
>className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
>  
>
>>                
>>
>>    
>>
>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.4"
>>                mcastPort="45564"
>>                mcastFrequency="500"
>>                mcastDropTime="3000"/>
>>
>>            <Receiver 
>>               
>>
>>    
>>
>className="org.apache.catalina.cluster.tcp.ReplicationListener"
>  
>
>>                tcpListenAddress="auto"
>>                tcpListenPort="4001"
>>                tcpSelectorTimeout="100"
>>                tcpThreadCount="6"/>
>>
>>            <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;"/>
>  
>
>>            <Deployer
>>
>>    
>>
>className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
>  
>
>>                      tempDir="/tmp/war-temp/"
>>                      deployDir="/tmp/war-deploy/"
>>                      watchDir="/tmp/war-listen/"
>>                      watchEnabled="false"/>
>>        </Cluster>
>>      </Host>
>>    </Engine>
>>  </Service>
>></Server>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>    
>>
>tomcat-user-help@jakarta.apache.org
>
>
>__________________________________
>Save the earth
>http://pr.mail.yahoo.co.jp/ondanka/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
>  
>


-- 




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message