top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to deploy a .WAR to multiple Tomcat instances

+1 vote
636 views

I have one .WAR to routinely deploy across various Tomcat Instances on different servers.

I believe FarmWarDeployer can only be used within a cluster. From what I understand, a cluster will require a HTTPD server with a mod_jk configured. Would anyone know of a way to achieve this without the need to configure a cluster? We have no desire to change traffic routing to go through an HTTPD as our load balancer handles traffic fine as it is. Ideally, i'd also like the context.xml to be distributable, so changing on one instance will update on all others...but I suspect this will require a cluster configured.

posted Aug 29, 2013 by Amit Parthsarthi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Check the following page, it should contain all that you want :

https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Remotely

(and even if not, it is probably a good idea to read it first anyway, and come back here if you have any more questions)

answer Aug 29, 2013 by Sheetal Chauhan
Similar Questions
0 votes

We currently are setting a site that receives fairly heavy traffic (5000 simultaneous users). We have two physical servers.

As a general idea, is there performance to be gained by running multiple instances of Tomcat 7.0? For example, two instances on one physical server and two instances on the other physical server? Assume all are running the same webapp.

0 votes

I have built a rails application with jruby. Since I have no experience with deploying a rails application in a production environment, I have spent some time doing a manual deployment on a linux server with tomcat6 as application server.

In essence, I have made a war file of the rails application with help of the warbler gem and deployed that on the linux server. I managed to get it up and running, but not yet exactly as I need it to be.

I have still some configuration issues. I hope you can help me or point me to the right place, since it may be a tomcat question. But I assume there must be some rails/tomcat expertise among the members of this group...

The point is, the URL in the development server is localhost:3000/invoices (using rails server)
The URL in the tomcat production environment is localhost:8080/rails/invoices

I can't seem to figure out how I can change the port and the document root (/invoices instead of /rails/invoices) in tomcat.

Any suggestions?

+2 votes

I downloaded a website say "test.org" using wget utility. Now I want to deploy in Apache Tomcat 8.0 RC. That I have done it.

But I want to do in this manner that I want to access "test.org" locally from my browser as if I am browsing on the internet because links in the test.org refers to itself. Because when I click any link it goes to
Internet and not to my locally saved website.

Please help

...