Discussion:
tomcat clustering
John Smith
2010-05-31 05:37:08 UTC
Permalink
Hi ,

I am trying to cluster 3 nodes on one machine, follow the instructions

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

At Deployer className, i have changed

<Deployer
className="org.apache.catalina.ha.deploy.FarmWarDeployer"
tempDir="/usr/local/tomcat/web-temp/"
deployDir="/usr/local/tomcat/webapps"
watchDir="/usr/local/tomcat/web-listen/"
watchEnabled="false"/>

deployed my war file deployDir="/usr/local/tomcat/webapps" after restarting
the tomcat my war file is not exploded and in log i am getting

SEVERE: FarmWarDeployer can only work as host cluster subelement!

I checked Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer
on tomcat site

http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html

This goober is currently pretty broken, but we are
working hard to fix it

search on google but couldn't find required info.

My question, is where I can deploy my war file so that all three nodes can
see and work in cluster.

Any help will be appreciated

Regards

John
Mark Thomas
2010-05-31 16:34:04 UTC
Permalink
Post by John Smith
deployed my war file deployDir="/usr/local/tomcat/webapps" after restarting
the tomcat my war file is not exploded and in log i am getting
SEVERE: FarmWarDeployer can only work as host cluster subelement!
This means that your top-level <Cluster .../> element is is nested
inside an <Engine .../> element. The FarmWarDeployer only works if the
top-level <Cluster .../> element is is nested inside an <Host.../> element.
Post by John Smith
I checked Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer
on tomcat site
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html
This goober is currently pretty broken, but we are
working hard to fix it
It is no longer broken (I fixed it in 6.0.20) but the docs still haven't
been written. Going from memory:

1. Move your <Cluster .../> element from <Engine.../> to <Host.../>
2. The watchDir is where you put WAR files you want copied to the
cluster (should be outside the host's appBase)
3. The tempDir gets used to write WARs as they are received from the
cluster.
4. The deplorDir is where apps get deployed from. If I recall correctly,
this should not be the webapps directory although it may work if
autoDeploy is disabled.

Mark
Post by John Smith
search on google but couldn't find required info.
My question, is where I can deploy my war file so that all three nodes can
see and work in cluster.
Any help will be appreciated
Regards
John
Seth
2011-04-29 03:54:00 UTC
Permalink
Post by Mark Thomas
Post by John Smith
I checked Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer
on tomcat site
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html
This goober is currently pretty broken, but we are
working hard to fix it
It is no longer broken (I fixed it in 6.0.20) but the docs still haven't
Mark
I'm trying to use the FarWarDeployer with Tomcat 6.0.20 and 6.0.32 but am
getting the following error.

Application [app war name] in used. touch war file [app war name] again!

The app deploys to all my Tomcats in the cluster but then immediately un-deploys
from one of them and throws that error..

Any suggestions?

Seth

Loading...