Hi Team,

 I have used this configuration of FarmWarDeployer to configure two tomcat
nodes as part of Cluster.

1: tempDir="\temp-dir\"
            deployDir="\webapps\"
            watchDir="\watch-dir\"
            watchEnabled="true"/>

2: tempDir="\temp-dir\"
            deployDir="\webapps\"
            watchDir="\watch-dir\"
            watchEnabled="false"/>

Configuration folders are respective to two TOMCAT_BASE instances
1: C:\tomcat1
2: C:\tomcat2
My TOMCAT_HOME is C:\tomcat7.

The 1st tomcat is able to deploy the war correctly from watchDir folder as
evident from log below:

INFO: Starting Servlet Engine: Apache Tomcat/7.0.77
Jul 17, 2017 3:48:08 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
startInternal
INFO: Cluster is about to start
Jul 17, 2017 3:48:08 PM org.apache.catalina.tribes.transport.ReceiverBase
bind
INFO: Receiver Server Socket bound to:/192.168.1.8:4000
Jul 17, 2017 3:48:08 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
Jul 17, 2017 3:48:08 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start
level:4
Jul 17, 2017 3:48:09 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:4
Jul 17, 2017 3:48:09 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start
level:8
Jul 17, 2017 3:48:10 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:8
Jul 17, 2017 3:48:10 PM org.apache.catalina.ha.deploy.FarmWarDeployer start
INFO: Cluster deployment is watching [\watch-dir\] for changes.
Jul 17, 2017 3:48:10 PM org.apache.catalina.ha.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Jul 17, 2017 3:48:10 PM org.apache.catalina.ha.session.JvmRouteBinderValve
startInternal
INFO: JvmRouteBinderValve started
Jul 17, 2017 3:48:10 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor
C:\tomcat1\conf\Catalina\localhost\manager.xml
Jul 17, 2017 3:48:10 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jul 17, 2017 3:48:11 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deployment of configuration descriptor
C:\tomcat1\conf\Catalina\localhost\manager.xml has finished in 785 ms
Jul 17, 2017 3:48:11 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]
Jul 17, 2017 3:48:11 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 17, 2017 3:48:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3077 ms
Jul 17, 2017 3:48:31 PM org.apache.catalina.ha.deploy.FarmWarDeployer
fileModified
INFO: Installing webapp [/catalogue] from [C:\tomcat1\webapps\catalogue.war]
Jul 17, 2017 3:48:31 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\tomcat1\webapps\catalogue.war
Jul 17, 2017 3:48:31 PM org.apache.catalina.loader.WebappClassLoaderBase
validateJarFile
INFO:
validateJarFile(C:\tomcat1\webapps\catalogue\WEB-INF\lib\servlet-api-2.5.jar)
- jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
javax/servlet/Servlet.class
Jul 17, 2017 3:48:31 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jul 17, 2017 3:48:31 PM org.apache.catalina.ha.session.DeltaManager
startInternal
INFO: Register manager /catalogue to cluster element Host with name
localhost
Jul 17, 2017 3:48:31 PM org.apache.catalina.ha.session.DeltaManager
startInternal
INFO: Starting clustering manager at /catalogue
Jul 17, 2017 3:48:31 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
INFO: Manager [/catalogue]: skipping state transfer. No members active in
cluster group.
Jul 17, 2017 3:48:31 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\tomcat1\webapps\catalogue.war has finished in 359 ms

My Question is :
1: why automatic deployment is not happening in second node.
2: MoreOver, How the second node will know about the deployed war if
*watchEnabled
*is *FALSE.*


Tomcat: 7.0.79
Apache: httpd-2.4.26-Win64-VC15
with mod_jk, thanks in advance.

Thanks

Reply via email to