Hi 

I am facing a problem with FarmWarDeployer. I have Nabbled and Googled a lot
on this, and based on my search i have verified that my configuration are
all the same as required. But still face the issue so here are the details.

I have two instance of Tomcat5.5 running on the same machine (A & B). 
I have used Apache 2.2 as Web Server and for load balancing. I am using
latest JK tomcat connector.

I have updated the serer.xml for both tomcat A & B. With all the
configuration i am able to test the session replication and also the load
balancing. I was able to access all my application through Apache url
http://localhost/<myAppName>

Now my issue is with the deployment of Application I read that with
FarmWardeployer we can deploy the App on one server and this takes care of
deploying the App cluster wide. 

Following is the server.xml snipset from my tomcat A

 <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"
                                 printToScreen="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"       <!-- For server B this is 4002
-->
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>

            <Sender
               
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                ackTimeout="15000"
                waitForAck="false"/>

            <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="/temp/"
                      deployDir="/webapps/"
                      watchDir="/webapps/"
                      watchEnabled="true"/>  <!-- For server B this is false
-->
                      
            <ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
        </Cluster>
      </Host>

The configuration on tomact B is also the same except the port No. and the
value of attribute in the deployer tag. In B server the watchEnabled is set
to false. So that war will be deployed from only Server A. 

Experts!! please help me on this if i am missing any thing. I have also
updated the antiJARLocking to true in the context.xml of both server. and
the <distibutable/> tag is also present in my application web.xml. 

---------------
I observed that when i start by both server (one at a time) ad then the
Apache Server. Both A and B are able to locate each other through the MCast.
When i deploy the WAR on A, then the console on A is :

Jul 25, 2008 12:29:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive NewReports.war
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Jul 25, 2008 12:29:36 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/NewReports
Jul 25, 2008 12:29:36 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Register manager /NewReportsto cluster element Host with name local
host
Jul 25, 2008 12:29:36 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager at /CellmaniaReports
Jul 25, 2008 12:29:36 PM org.apache.catalina.cluster.session.DeltaManager
getAllClusterSessions
WARNING: Manager [/NewReports], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.163:4002,catalina,192.168.1.16
3,4002, alive=317779]. This operation will timeout if no session state has
been
received within 60 seconds.
Jul 25, 2008 12:30:37 PM org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions
SEVERE: Manager [/NewReports]: No session state send at 7/25/08 12:29 PM r
eceived, timing out after 60,063 ms.

----------------
Where as on the console B i see the message and the WAR is not deployed on
B:
SERVER:Context does not exist:/NewReports 


Please let me know if u need more details. 

Aditya 

-----
@:working:ditya 
-- 
View this message in context: 
http://www.nabble.com/farmWar-Deployment-not-workinf-but-Session-replication-works.-tp18658904p18658904.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to