Re: SEVERE: Unable to start cluster.

2012-04-07 Thread Mark Eggers

 From: Dhaval Jaiswal dhaval.jais...@via.com
To: Tomcat Users List users@tomcat.apache.org; Mark Eggers 
its_toas...@yahoo.com 
Sent: Friday, April 6, 2012 4:29 AM
Subject: Re: SEVERE: Unable to start cluster.
 


Yes we have distributable/ in web.xml



Below is the full server.xml for all the tomcats.

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN

  Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
    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 /
    Resource name=xyz auth=Container type=javax.sql.DataSource
    driverClassName=xyz.Driver url=jdbc url
    username=xyz password=xyz
    maxActive=150 maxIdle=10 maxWait=3
    removeAbandoned=true removeAbandonedTimeout=120 
logAbandoned=true /

    
  /GlobalNamingResources

  Service name=Catalina
  
    
    Connector port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
    Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /

    Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
backlog=100 maxThreads=4 /


    Engine name=Catalina defaultHost=localhost jvmRoute=t5

  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
channelSendOptions=6
    Manager className=org.apache.catalina.ha.session.BackupManager 
expireSessionsOnShutdown=false
   notifyListenersOnReplication=true mapSendOptions=6/

    Channel className=org.apache.catalina.tribes.group.GroupChannel
 Membership 
className=org.apache.catalina.tribes.membership.McastService
    address=228.0.0.4
    port=45564
    frequency=500
    dropTime=3/
 Receiver 
className=org.apache.catalina.tribes.transport.nio.NioReceiver
  address=auto
  port=4000
  selectorTimeout=5000
  timeout=6
  maxThreads=6/

 Sender 
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
  Transport 
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender 
timeout=6 keepAliveCount=0/
 /Sender
 Interceptor 
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
 Interceptor 
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/

   /Channel
 Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 
filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
 Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
   ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/ 
   ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
 /Cluster 
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/ 

  Host name=localhost  appBase=webapps
    unpackWARs=true autoDeploy=true
    xmlValidation=false xmlNamespaceAware=false

  /Host
    /Engine
  /Service
/Server




Below is the context.xml


?xml version='1.0' encoding='utf-8'?

Context

    WatchedResourceWEB-INF/web.xml/WatchedResource
    
    ResourceLink name=xyz global=xyz type=javax.sql.DataSource/
/Context



still it is throwing error while deploying apps. 


WARNING: Unable to send map start message.
 Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
 SEVERE: Unable to start BackupManager
 java.lang.RuntimeException: Unable to start replicated map.
    at
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)

 Failed to start BackupManager:  java.lang.IllegalArgumentException:
 Listener already
 exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]


OK,

Let's go through this again. I've deleted my last response since none of that
seems to have made it into your current configuration.

1. Add the leak prevention listener back to your server.xml

Listener
  className=org.apache.catalina.core.JreMemoryLeakPreventionListener/

2. If you are not using the HTTP/1.1 connector, comment it out.

!--
Connector port=8080 protocol=HTTP/1.1

Re: SEVERE: Unable to start cluster.

2012-04-06 Thread Dhaval Jaiswal
*
Yes we have distributable/ in web.xml*

*

Below is the full server.xml for all the tomcats.*

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN

  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
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 /
Resource name=xyz auth=Container type=javax.sql.DataSource
driverClassName=xyz.Driver url=jdbc url
username=xyz password=xyz
maxActive=150 maxIdle=10 maxWait=3
removeAbandoned=true removeAbandonedTimeout=120
logAbandoned=true /


  /GlobalNamingResources

  Service name=Catalina


Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /

Connector port=8009 protocol=AJP/1.3 redirectPort=8443
backlog=100 maxThreads=4 /


Engine name=Catalina defaultHost=localhost jvmRoute=t5

  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
channelSendOptions=6
Manager className=org.apache.catalina.ha.session.BackupManager
expireSessionsOnShutdown=false
   notifyListenersOnReplication=true mapSendOptions=6/

Channel
className=org.apache.catalina.tribes.group.GroupChannel
 Membership
className=org.apache.catalina.tribes.membership.McastService
address=228.0.0.4
port=45564
frequency=500
dropTime=3/
 Receiver
className=org.apache.catalina.tribes.transport.nio.NioReceiver
  address=auto
  port=4000
  selectorTimeout=5000
  timeout=6
  maxThreads=6/

 Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
  Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
timeout=6 keepAliveCount=0/
 /Sender
 Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
 Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/

   /Channel
 Valve className=org.apache.catalina.ha.tcp.ReplicationValve

filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
 Valve
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
   ClusterListener
className=org.apache.catalina.ha.session.ClusterSessionListener/
   ClusterListener
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
 /Cluster
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

  /Host
/Engine
  /Service
/Server



*
Below is the context.xml*


?xml version='1.0' encoding='utf-8'?

Context

WatchedResourceWEB-INF/web.xml/WatchedResource

ResourceLink name=xyz global=xyz type=javax.sql.DataSource/
/Context



still it is throwing error while deploying apps.


WARNING: Unable to send map start message.
 Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
 SEVERE: Unable to start BackupManager
 java.lang.RuntimeException: Unable to start replicated map.
at
 
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)

 Failed to start BackupManager:  java.lang.IllegalArgumentException:
 Listener already
 exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]










On Fri, Apr 6, 2012 at 2:31 AM, Mark Eggers its_toas...@yahoo.com wrote:

 Response at the bottom:

 /mde/

 
  From: Dhaval Jaiswal dhaval.jais...@via.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, April 5, 2012 10:28 AM
 Subject: Re: SEVERE: Unable to start cluster.
 
 
 pfa server.xml
 
 The same i am using for all the 10 tomcats.
 
 
 
 
 On Thu, Apr 5, 2012 at 9:55 PM, Pid p...@pidster.com wrote:
 
 On 05/04/2012 15:13, Dhaval Jaiswal wrote:
  I have tested the below cluster manager; as per the instruction i have
  changed. However, when we try to deploy the apps on tomcat it was
  throwing error

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Dhaval Jaiswal
I have tested the below cluster manager; as per the instruction i have
changed. However, when we try to deploy the apps on tomcat it was throwing
error that

WARNING: Unable to send map start message.
Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
SEVERE: Unable to start BackupManager
java.lang.RuntimeException: Unable to start replicated map.
   at
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)

Failed to start BackupManager:  java.lang.IllegalArgumentException:
Listener already
exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]



i am using below server.xml for all the 10 tomcats. Do i have to change it
for every tomcat. How would i fix it.



Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
channelSendOptions=6
Manager className=org.apache.catalina.ha.session.BackupManager
expireSessionsOnShutdown=false
   notifyListenersOnReplication=true mapSendOptions=6/

Channel
className=org.apache.catalina.tribes.group.GroupChannel
 Membership
className=org.apache.catalina.tribes.membership.McastService
address=228.0.0.4
port=45563
frequency=500
dropTime=3/
 Receiver
className=org.apache.catalina.tribes.transport.nio.NioReceiver
  address=auto
  port=4000
  selectorTimeout=5000
  timeout=6
  maxThreads=6/

 Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
  Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
timeout=6 keepAliveCount=0/
 /Sender
 Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
 Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
!--  Interceptor
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
--
   /Channel
 Valve className=org.apache.catalina.ha.tcp.ReplicationValve

filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
 Valve
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
   ClusterListener
className=org.apache.catalina.ha.session.ClusterSessionListener/
   ClusterListener
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
 /Cluster




On Thu, Apr 5, 2012 at 2:25 AM, Mark Eggers its_toas...@yahoo.com wrote:

 Comments inline and surrounded by === COMMENT =

 - Original Message -

  From: Dhaval Jaiswal dhaval.jais...@via.com
  To: Tomcat Users List users@tomcat.apache.org
  Cc:
  Sent: Wednesday, April 4, 2012 12:12 PM
  Subject: Re: SEVERE: Unable to start cluster.
 
 T hanks to all for sharing info. I will test it  come back to you.
 
  Also want to know that after starting session replication there will be a
  huge logging in catalina.out for session information. How to minimize it
 ?

 === COMMENT =


 Did read my other mail concerning how to manage logging? I thought I was
 pretty explicit (and gave an example). If my example for logging.properties
 was unclear, please ask specific questions (to the list).

 If you want less logging, then turn down the levels. See the following
 documentation:


 http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_java.util.logging_(default)


 === COMMENT =


 
  Below are the logs of catalina.out. As per the log it shows that it has
  added member 192.168.3.18.
 
  Now we have a tomcat cluster group from 192.168.3.5 to 192.168.3.11.
  However it is trying to connect to the 192.168.3.18.
 
 
  192.168.3.18 is the tomcat of another cluster. Where should i look into
 to
  resolve this. Where to define this limit that it has to share the session
  information from 192.168.3.5 to 192.168.3.11.

 === COMMENT =


 From the documentation on the web site at:


 http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html#Cluster_Information


 Membership is established using multicast heartbeats. Hence, if you wish
 to subdivide your clusters, you can do this by changing the multicast IP
 address or port in the Membership element.

 In other words, if you want multiple clusters change either the multicast
 address here:

Membership
 className=org.apache.catalina.tribes.membership.McastService
 address=228.0.0.4
 port=45564
 frequency=500
 dropTime=3000/

 to a different multicast address, or change the port in the above to a
 different port. The multicast address / port establishes the cluster group.
 The above snippet is from one of my server.xml files

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Pid
On 05/04/2012 15:13, Dhaval Jaiswal wrote:
 I have tested the below cluster manager; as per the instruction i have
 changed. However, when we try to deploy the apps on tomcat it was
 throwing error that
 
 WARNING: Unable to send map start message.
 Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
 SEVERE: Unable to start BackupManager
 java.lang.RuntimeException: Unable to start replicated map.
at
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)
 
 Failed to start BackupManager:  java.lang.IllegalArgumentException:
 Listener already
 exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]
 
 
 
 i am using below server.xml for all the 10 tomcats. Do i have to change
 it for every tomcat. How would i fix it.
 
 
 
 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=6
 Manager
 className=org.apache.catalina.ha.session.BackupManager
 expireSessionsOnShutdown=false
notifyListenersOnReplication=true mapSendOptions=6/
 
 Channel
 className=org.apache.catalina.tribes.group.GroupChannel
  Membership
 className=org.apache.catalina.tribes.membership.McastService
 address=228.0.0.4
 port=45563
 frequency=500
 dropTime=3/
  Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
   address=auto
   port=4000
   selectorTimeout=5000
   timeout=6
   maxThreads=6/
 
  Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter
   Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender 
 timeout=6
 keepAliveCount=0/
  /Sender
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
 !--  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
 --
/Channel
  Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 
 filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
  Valve
 className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/
ClusterListener
 className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
  /Cluster


Wow.  That's pretty neat, I've never seen Tomcat start up with just the
cluster definition.

How about you:

1) remove all comments
2) remove all passwords
3) post the whole server.xml inline in your next reply


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Dhaval Jaiswal
pfa server.xml

The same i am using for all the 10 tomcats.



On Thu, Apr 5, 2012 at 9:55 PM, Pid p...@pidster.com wrote:

 On 05/04/2012 15:13, Dhaval Jaiswal wrote:
  I have tested the below cluster manager; as per the instruction i have
  changed. However, when we try to deploy the apps on tomcat it was
  throwing error that
 
  WARNING: Unable to send map start message.
  Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
  SEVERE: Unable to start BackupManager
  java.lang.RuntimeException: Unable to start replicated map.
 at
 
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)
 
  Failed to start BackupManager:  java.lang.IllegalArgumentException:
  Listener already
  exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]
 
 
 
  i am using below server.xml for all the 10 tomcats. Do i have to change
  it for every tomcat. How would i fix it.
 
 
 
  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
  channelSendOptions=6
  Manager
  className=org.apache.catalina.ha.session.BackupManager
  expireSessionsOnShutdown=false
 notifyListenersOnReplication=true
 mapSendOptions=6/
 
  Channel
  className=org.apache.catalina.tribes.group.GroupChannel
   Membership
  className=org.apache.catalina.tribes.membership.McastService
  address=228.0.0.4
  port=45563
  frequency=500
  dropTime=3/
   Receiver
  className=org.apache.catalina.tribes.transport.nio.NioReceiver
address=auto
port=4000
selectorTimeout=5000
timeout=6
maxThreads=6/
 
   Sender
  className=org.apache.catalina.tribes.transport.ReplicationTransmitter
Transport
 
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
 timeout=6
  keepAliveCount=0/
   /Sender
   Interceptor
 
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
   Interceptor
 
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
  !--  Interceptor
 
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
  --
 /Channel
   Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 
 
 filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
   Valve
  className=org.apache.catalina.ha.session.JvmRouteBinderValve/
 ClusterListener
  className=org.apache.catalina.ha.session.ClusterSessionListener/
 ClusterListener
 
 className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
   /Cluster


 Wow.  That's pretty neat, I've never seen Tomcat start up with just the
 cluster definition.

 How about you:

 1) remove all comments
 2) remove all passwords
 3) post the whole server.xml inline in your next reply


 p


 --

 [key:62590808]




-- 

[image: Inline image 2] http://www.via.com/

*Dhaval* | Database  System

*E:* dhaval.jais...@via.com ra...@via.com| *T:* 080 4043 3000 | *M:* +91
- 8095 397 843

[image: all-icon.jpg] http://www.via.com/
image001.pngimage002.jpg?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --
Server port=8005 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  !-- Global JNDI resources
   

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Mark Eggers
Response at the bottom:

/mde/


 From: Dhaval Jaiswal dhaval.jais...@via.com
To: Tomcat Users List users@tomcat.apache.org 
Sent: Thursday, April 5, 2012 10:28 AM
Subject: Re: SEVERE: Unable to start cluster.
 

pfa server.xml 

The same i am using for all the 10 tomcats. 




On Thu, Apr 5, 2012 at 9:55 PM, Pid p...@pidster.com wrote:

On 05/04/2012 15:13, Dhaval Jaiswal wrote:
 I have tested the below cluster manager; as per the instruction i have
 changed. However, when we try to deploy the apps on tomcat it was
 throwing error that

 WARNING: Unable to send map start message.
 Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
 SEVERE: Unable to start BackupManager
 java.lang.RuntimeException: Unable to start replicated map.
        at
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)

 Failed to start BackupManager:  java.lang.IllegalArgumentException:
 Listener already
 exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]



 i am using below server.xml for all the 10 tomcats. Do i have to change
 it for every tomcat. How would i fix it.



 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=6
         Manager
 className=org.apache.catalina.ha.session.BackupManager
 expireSessionsOnShutdown=false
                    notifyListenersOnReplication=true mapSendOptions=6/

             Channel
 className=org.apache.catalina.tribes.group.GroupChannel
              Membership
 className=org.apache.catalina.tribes.membership.McastService
                         address=228.0.0.4
                         port=45563
                         frequency=500
                         dropTime=3/
              Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
                       address=auto
                       port=4000
                       selectorTimeout=5000
                       timeout=6
                       maxThreads=6/

              Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter
                   Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender 
 timeout=6
 keepAliveCount=0/
              /Sender
              Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
              Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
             !--  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
 --
            /Channel
          Valve className=org.apache.catalina.ha.tcp.ReplicationValve

 filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
          Valve
 className=org.apache.catalina.ha.session.JvmRouteBinderValve/
        ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/
        ClusterListener
 className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
      /Cluster


Wow.  That's pretty neat, I've never seen Tomcat start up with just the
cluster definition.

How about you:

1) remove all comments
2) remove all passwords
3) post the whole server.xml inline in your next reply


Dhaval,


Please try to avoid posting in HTML. The font is sometimes difficult to read.

Please don't cc me. I get the same message on the list, and with about 200 mail 
messages per day on this account I might overlook stuff if I get a lot of 
duplicate messages.

Please post stuff inline and not as attachments. While I got the attached 
server.xml file, the list generally strips attachments.

All that being said, here are my comments:

!-- From your server.xml --
Listener
  className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /
Listener
  className=org.apache.catalina.core.JasperListener /
Listener
  className=org.apache.catalina.mbeans.ServerLifecycleListener /
Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

So you've removed the memory leak prevention listener from your
server.xml? Is there any reason why you've done that?

!-- from your server.xml --
Connector port=8080 protocol=HTTP/1.1 
           connectionTimeout=2 
           redirectPort=8443 /

Connector port=8009
           protocol=AJP/1.3
           redirectPort=8443
           backlog=100
           maxThreads=4 /

No URIEncoding=UTF-8 on your connectors? I checked your web site and
there doesn't seem to be any characters that would be
impacted. However, I was thinking that setting UTF-8 on all connectors
is in general a good thing.

4 threads for the AJP connector with only a backlog of 100? I hope that

a) your Apache HTTPD server is configured appropriately
b) you can have this many file descriptors open

!-- from your server.xml --
Membership
            className=org.apache.catalina.tribes.membership.McastService
            address=228.0.0.4

Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Pid
On 05/04/2012 18:28, Dhaval Jaiswal wrote:
 pfa server.xml

Sorry, not going to wade through all of those comments until you remove
them from the XML.


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: SEVERE: Unable to start cluster.

2012-04-05 Thread Pid
On 05/04/2012 22:01, Mark Eggers wrote:
 Response at the bottom:
 
 /mde/
 
 
 From: Dhaval Jaiswal dhaval.jais...@via.com
 To: Tomcat Users List users@tomcat.apache.org 
 Sent: Thursday, April 5, 2012 10:28 AM
 Subject: Re: SEVERE: Unable to start cluster.


 pfa server.xml 

 The same i am using for all the 10 tomcats. 




 On Thu, Apr 5, 2012 at 9:55 PM, Pid p...@pidster.com wrote:

 On 05/04/2012 15:13, Dhaval Jaiswal wrote:
 I have tested the below cluster manager; as per the instruction i have
 changed. However, when we try to deploy the apps on tomcat it was
 throwing error that

 WARNING: Unable to send map start message.
 Apr 5, 2012 1:37:12 PM org.apache.catalina.ha.session.BackupManager start
 SEVERE: Unable to start BackupManager
 java.lang.RuntimeException: Unable to start replicated map.
at
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap.init(AbstractReplicatedMap.java:230)

 Failed to start BackupManager:  java.lang.IllegalArgumentException:
 Listener already
 exists:{}[org.apache.catalina.tribes.tipis.LazyReplicatedMap]



 i am using below server.xml for all the 10 tomcats. Do i have to change
 it for every tomcat. How would i fix it.



 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=6
 Manager
 className=org.apache.catalina.ha.session.BackupManager
 expireSessionsOnShutdown=false
notifyListenersOnReplication=true mapSendOptions=6/

 Channel
 className=org.apache.catalina.tribes.group.GroupChannel
  Membership
 className=org.apache.catalina.tribes.membership.McastService
 address=228.0.0.4
 port=45563
 frequency=500
 dropTime=3/
  Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
   address=auto
   port=4000
   selectorTimeout=5000
   timeout=6
   maxThreads=6/

  Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter
   Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender 
 timeout=6
 keepAliveCount=0/
  /Sender
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
 !--  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
 --
/Channel
  Valve className=org.apache.catalina.ha.tcp.ReplicationValve

 filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
  Valve
 className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/
ClusterListener
 className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
  /Cluster


 Wow.  That's pretty neat, I've never seen Tomcat start up with just the
 cluster definition.

 How about you:

 1) remove all comments
 2) remove all passwords
 3) post the whole server.xml inline in your next reply
 
 
 Dhaval,
 
 
 Please try to avoid posting in HTML. The font is sometimes difficult to read.
 
 Please don't cc me. I get the same message on the list, and with about 200 
 mail messages per day on this account I might overlook stuff if I get a lot 
 of duplicate messages.
 
 Please post stuff inline and not as attachments. While I got the attached 
 server.xml file, the list generally strips attachments.
 
 All that being said, here are my comments:
 
 !-- From your server.xml --
 Listener
   className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /
 Listener
   className=org.apache.catalina.core.JasperListener /
 Listener
   className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener
   className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
 
 So you've removed the memory leak prevention listener from your
 server.xml? Is there any reason why you've done that?
 
 !-- from your server.xml --
 Connector port=8080 protocol=HTTP/1.1 
connectionTimeout=2 
redirectPort=8443 /
 
 Connector port=8009
protocol=AJP/1.3
redirectPort=8443
backlog=100
maxThreads=4 /
 
 No URIEncoding=UTF-8 on your connectors? I checked your web site and
 there doesn't seem to be any characters that would be
 impacted. However, I was thinking that setting UTF-8 on all connectors
 is in general a good thing.
 
 4 threads for the AJP connector with only a backlog of 100? I hope that
 
 a) your Apache HTTPD server is configured appropriately
 b) you can have this many file descriptors open
 
 !-- from your server.xml --
 Membership

Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Daniel Mikusa
- Original Message -
 Hi List,
 
 Below is the error we are facing while starting tomcats.
 
 SEVERE: Unable to start cluster.
 org.apache.catalina.tribes.ChannelException:
 java.net.SocketException: Not
 a multicast address; No faulty members identified.
 

The address you specified is not a multicast address.  See the following link 
for info on multicast addresses.

  https://en.wikipedia.org/wiki/Multicast_address

 
 Our cluster setting is as below in server.xml
 
 
  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=6
 Manager
 className=org.apache.catalina.ha.session.BackupManager
 expireSessionsOnShutdown=false
notifyListenersOnReplication=true
mapSendOptions=6/
 
 Channel
 className=org.apache.catalina.tribes.group.GroupChannel
  Membership
 className=org.apache.catalina.tribes.membership.McastService

 address=192.168.3.14

This is the address which is referenced from the error above.  It's not a 
multicast address.

 port=45564
 frequency=500
 dropTime=3/
  Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
   address=auto
   port=4000
   selectorTimeout=5000
   timeout=6
   maxThreads=6/
 
  Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter
   Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
 timeout=6 keepAliveCount=0/
  /Sender
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
  Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
/Channel
  Valve
  className=org.apache.catalina.ha.tcp.ReplicationValve
 
 filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt/
  Valve
 className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/
ClusterListener
 className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
  /Cluster
 
 
 
 Note: 192.168.3.14 is the IP of backup manager with java 
 192.168.3.9 is
 the IP address of local tomcat where above server.xml is hosted.
 
 Please guide us as to how to overcome the issue 

Use a correct multicast address.

 please give us the sample

See the section title For the impatient.

  https://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html

Dan


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Dhaval Jaiswal
Thanks to all for sharing info. I will test it  come back to you.

Also want to know that after starting session replication there will be a
huge logging in catalina.out for session information. How to minimize it ?

Below are the logs of catalina.out. As per the log it shows that it has
added member 192.168.3.18.

Now we have a tomcat cluster group from 192.168.3.5 to 192.168.3.11.
However it is trying to connect to the 192.168.3.18.


192.168.3.18 is the tomcat of another cluster. Where should i look into to
resolve this. Where to define this limit that it has to share the session
information from 192.168.3.5 to 192.168.3.11.



INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110 84 -96
79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={}, domain={}, ]
Apr 5, 2012 12:31:10 AM
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
performBasicCheck
INFO: Suspect member, confirmed
alive.[org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110 84 -96
79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={}, domain={},
]]
Apr 5, 2012 12:32:10 AM
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
memberDisappeared
INFO: Received
memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64,
-88, 3, 18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110
84 -96 79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={},
domain={}, ]] message. Will verify.
Apr 5, 2012 12:32:10 AM
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
memberDisappeared
INFO: Verification complete. Member still
alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110 84 -96
79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={}, domain={},
]]
Apr 5, 2012 12:32:10 AM
org.apache.catalina.tribes.tipis.AbstractReplicatedMap heartbeat
SEVERE: Unable to send AbstractReplicatedMap.ping message
org.apache.catalina.tribes.ChannelException: Operation has timed out(6
ms.).; Faulty members:tcp://{-64, -88, 3, 18}:4000;









On Wed, Apr 4, 2012 at 8:43 PM, Thomas Rohde t...@ordix.de wrote:

 -Ursprüngliche Nachricht-
 Von:Dhaval Jaiswal dhaval.jais...@via.com
 Gesendet:   Mi 04.04.2012 16:41
 Betreff:SEVERE: Unable to start cluster.
 An: Tomcat Users List users@tomcat.apache.org;
 CC: Shrinivas Devarkonda shrinivas.devarko...@via.com;
  Hi List,
 
  Below is the error we are facing while starting tomcats.
 
  SEVERE: Unable to start cluster.
  org.apache.catalina.tribes.ChannelException: java.net.SocketException:
 Not
  a multicast address; No faulty members identified.
 
 
  Our cluster setting is as below in server.xml
 
 
   Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
  channelSendOptions=6
  Manager className=org.apache.catalina.ha.session.BackupManager
  expireSessionsOnShutdown=false
 notifyListenersOnReplication=true
 mapSendOptions=6/
 
  Channel
  className=org.apache.catalina.tribes.group.GroupChannel
   Membership
  className=org.apache.catalina.tribes.membership.McastService
  address=192.168.3.14
  port=45564
  frequency=500
  dropTime=3/
   Receiver
  className=org.apache.catalina.tribes.transport.nio.NioReceiver
address=auto
port=4000
selectorTimeout=5000
timeout=6
maxThreads=6/
 
   Sender
  className=org.apache.catalina.tribes.transport.ReplicationTransmitter
Transport
  className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
  timeout=6 keepAliveCount=0/
   /Sender
   Interceptor
 
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
   Interceptor
 
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interc
  eptor/
   Interceptor
 
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
  
 /Channel
   Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 
 
 filter=.*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt
  /
   Valve
  className=org.apache.catalina.ha.session.JvmRouteBinderValve/
 ClusterListener
  className=org.apache.catalina.ha.session.ClusterSessionListener/
 ClusterListener
 
 className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
   /Cluster
 
 
 
  Note: 192.168.3.14 is the IP of backup manager with java  192.168.3.9 is
  the IP address of 

Re: SEVERE: Unable to start cluster.

2012-04-04 Thread Mark Eggers
Comments inline and surrounded by === COMMENT =

- Original Message -

 From: Dhaval Jaiswal dhaval.jais...@via.com
 To: Tomcat Users List users@tomcat.apache.org
 Cc: 
 Sent: Wednesday, April 4, 2012 12:12 PM
 Subject: Re: SEVERE: Unable to start cluster.
 
T hanks to all for sharing info. I will test it  come back to you.
 
 Also want to know that after starting session replication there will be a
 huge logging in catalina.out for session information. How to minimize it ?

=== COMMENT =


Did read my other mail concerning how to manage logging? I thought I was pretty 
explicit (and gave an example). If my example for logging.properties was 
unclear, please ask specific questions (to the list).

If you want less logging, then turn down the levels. See the following 
documentation:

http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_java.util.logging_(default)


=== COMMENT =


 
 Below are the logs of catalina.out. As per the log it shows that it has
 added member 192.168.3.18.
 
 Now we have a tomcat cluster group from 192.168.3.5 to 192.168.3.11.
 However it is trying to connect to the 192.168.3.18.
 
 
 192.168.3.18 is the tomcat of another cluster. Where should i look into to
 resolve this. Where to define this limit that it has to share the session
 information from 192.168.3.5 to 192.168.3.11.

=== COMMENT =


From the documentation on the web site at:

http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html#Cluster_Information


Membership is established using multicast heartbeats. Hence, if you wish to 
subdivide your clusters, you can do this by changing the multicast IP address 
or port in the Membership element.

In other words, if you want multiple clusters change either the multicast 
address here:

           Membership 
className=org.apache.catalina.tribes.membership.McastService
                        address=228.0.0.4
                        port=45564
                        frequency=500
                        dropTime=3000/

to a different multicast address, or change the port in the above to a 
different port. The multicast address / port establishes the cluster group. The 
above snippet is from one of my server.xml files.

You might also want to read up on how multicasting works.

=== COMMENT =


 

 
 
 INFO: Replication member
 added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
 18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110 84 -96
 79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={}, domain={}, ]
 Apr 5, 2012 12:31:10 AM
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
 performBasicCheck
 INFO: Suspect member, confirmed
 alive.[org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
 18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110 84 -96
 79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={}, domain={},
 ]]
 Apr 5, 2012 12:32:10 AM
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
 memberDisappeared
 INFO: Received
 memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64,
 -88, 3, 18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110
 84 -96 79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={},
 domain={}, ]] message. Will verify.
 Apr 5, 2012 12:32:10 AM
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
 memberDisappeared
 INFO: Verification complete. Member still
 alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
 18}:4000,{-64, -88, 3, 18},4000, alive=18507474,id={25 -66 -54 110 84 -96
 79 -74 -84 -106 122 -65 -121 9 -16 5 }, payload={}, command={}, domain={},
 ]]
 Apr 5, 2012 12:32:10 AM
 org.apache.catalina.tribes.tipis.AbstractReplicatedMap heartbeat
 SEVERE: Unable to send AbstractReplicatedMap.ping message
 org.apache.catalina.tribes.ChannelException: Operation has timed out(6
 ms.).; Faulty members:tcp://{-64, -88, 3, 18}:4000;
 
 
 
 
 
 
 
 
 
 On Wed, Apr 4, 2012 at 8:43 PM, Thomas Rohde t...@ordix.de wrote:
 
  -Ursprüngliche Nachricht-
  Von:    Dhaval Jaiswal dhaval.jais...@via.com
  Gesendet:       Mi 04.04.2012 16:41
  Betreff:        SEVERE: Unable to start cluster.
  An:     Tomcat Users List users@tomcat.apache.org;
  CC:     Shrinivas Devarkonda shrinivas.devarko...@via.com;
   Hi List,
  
   Below is the error we are facing while starting tomcats.
  
   SEVERE: Unable to start cluster.
   org.apache.catalina.tribes.ChannelException: java.net.SocketException:
  Not
   a multicast address; No faulty members identified.
  
  
   Our cluster setting is as below in server.xml
  
  
    Cluster 
 className=org.apache.catalina.ha.tcp.SimpleTcpCluster
   channelSendOptions=6
           Manager 
 className=org.apache.catalina.ha.session.BackupManager
   expireSessionsOnShutdown=false