On 31/05/2010 06:37, John Smith wrote: > 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. > 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 > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org