Hello,

I have setup a Tomcat cluster and I am now trying to get the FarmWarDeployer to work. However, it seems that the Deployer never checks my watchDir and therefore never finds my new wars to deploy.

When starting Tomcat, the logs indicate that the Deployer is started:
13-Jan-2015 19:21:43.942 INFO [Catalina-startStop-1] org.apache.catalina.ha.deploy.FarmWarDeployer.start Cluster deployment is watching [/my/watch/dir/] for changes. 13-Jan-2015 19:21:43.942 INFO [Catalina-startStop-1] org.apache.catalina.ha.deploy.FarmWarDeployer.start Cluster FarmWarDeployer started.

But nothing more, even for extended periods of time after putting my ROOT.war inside my watchDir.

I checked the source code (https://github.com/apache/tomcat80/blob/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java), and it seems that the check must be done once every two "backgroundProcess" calls, but I don't understand when this function is supposed to be called or if there is a way to force the check.

I feel like I am missing something obvious...


Here is my config:
Oracle JDK 1.8.0_25
Tomcat 8.0.15
server.xml:
<Host name="www.exemple.com" appBase="/my/app/base"
            unpackWARs="true"
            autoDeploy="true"
            >
<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="3000"
                            bind="10.0.0.1"/>
<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                            address="10.0.0.1"
                            port="5000"
                            selectorTimeout="100"
                            maxThreads="6"/>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
                        </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|.*.css|.*.txt"/> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                        tempDir="/my/temp/dir/"
                        deployDir="/my/app/base/"
                        watchDir="/my/listen/dir/"
                        watchEnabled="true"/>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
                </Cluster>
</Host>

Thank you in advance,

Théo

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

Reply via email to