I am having problem doing sessionreplication 
apache give me this problem
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done config:
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done channel.socket:localhost:8009
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done ajp13:localhost:8009
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done channel.socket:localhost:8011
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done ajp13:localhost:8011
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
timeout 90
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
attempts 3
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
recovery 90
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
StickySession 0
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
noworksMsg Server busy please retry after some time
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done lb:balanced
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done shm
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done uri:/SessionRepTest/*
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done status:
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done uri:/jkstatus/*


my worker.properties
[logger]
level=DEBUG

[config:]
file=/etc/httpd/conf/workers.properties
debug=0

#Socket communication balace for Tomcat1
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat1
group=lb:balanced
lb_factor=1
route=Tomcat1Route

[ajp13:localhost:8009]
channel=channel.socket:Tomcat1


#Socket communication balace for Tomcat2
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat2
group=lb:balanced
lb_factor=1
route=Tomcat2Route

[ajp13:localhost:8011]
channel=channel.socket:Tomcat2



#load balancing
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=90
StickySession=0
noworksMsg=Server busy please retry after some time


[shm]
file=/etc/httpd/conf/jk2.shm
size=1000000


[uri:/SessionRepTest/*]
context=/SessionRepTest
info=Display status information and checks the config
file for changes.


[status:]

[uri:/jkstatus/*]
group=status
"workers.properties" 65L, 951C   

my server.xml
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested
corresponding to their
     parent-child relationships with each other -->



<Server port="8006" shutdown="SHUTDOWN" debug="0">


 
      
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"
            debug="0"/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
            debug="0"/>

  <!-- 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">
    </Resource>
    <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>

 

  <Engine name="Standalone" defaultHost="Tomcat2"
debug="0"
          jvmRoute="Tomcat2Route">
 <Host name="Tomcat2" debug="0" 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">

            <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"/>

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

            <Deployer
className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
                      tempDir="/tmp/war-temp/"
                      deployDir="/tmp/war-deploy/"
                      watchDir="/tmp/war-listen/"
                      watchEnabled="false"/>
        </Cluster>
        -->
        <!--this added by me sulaiman jrar to test
session clustring -->


         <Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="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="4002"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>
<Sender
               
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="synchronous"/>

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

 <Logger
className="org.apache.catalina.logger.FileLogger"
                 directory="logs" 
prefix="localhost_log." suffix=".txt"
            timestamp="true"/>
      <!-- </Context> -->
      </Host>
<!--     -->
    </Engine>

  </Service>

</Server>



                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to