Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7510533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:14:59+00:00 2026-05-29T23:14:59+00:00

Currently, I have a web application, export it with eclipse in a war, copy

  • 0

Currently, I have a web application, export it with eclipse in a war, copy it manually with scp on the server, run a script that extracts the war, uses local configuration files to overwrite the ones in the war, and copies the extracted folder in tomcat/webapps. This sounds easy for a server or two, but not for 100.

How can I improve this, in order to have better control of the versions/configurations installed and to deploy it more easily?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:15:02+00:00Added an answer on May 29, 2026 at 11:15 pm

    As this is not a single answer question, depending on the project and, why not, personal taste, I will post some the steps I believe could help the whole process of management/deployment.

    This does not mean that the solutions offered by the other posters are wrong (some of them received my upvote), but that this is what I found will work better for me.

    1) In order to have only one version of war with multiple configurations, I used JNDI. I set up a env variable to the path where I could find the config. This was added to web.xml:

    <env-entry>
    <description>path to configuration files</description>
    <env-entry-name>appName/pathToConfigFiles</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>/configFolder/appName/</env-entry-value>
    </env-entry>
    

    This has a default value, when the config files are taken from the war, but it can be overriden by context.xml.

    <Environment name="appName/pathToConfigFiles" 
        type="java.lang.String" value="/etc/.."/>
    

    This way if someone needs for example to change the database connection parameters I will not have to deploy a new war. The admin can change the file in the configuration folder.
    The db config file and log4j file are my only external files. The rest of the configuration is done through the database.

    Main advantage is that the same artifact can be deployed both in testing and production and on any of the 100 servers. I currently use it on Tomcat, but env variables should be available in other app servers.

    2) Changed from an IDE build to a build-tool. I chose maven, but you can use ant/whatever.
    For this I found useful the following sources:

    • “Maven by Example” book;
    • M2Eclipse plugin

    For this I will also need to install Nexus as a mirror repository.

    3) Install a continuous integration tool like Jenkins/Hudson. It is a wonderful tool, but because of its complex nature, it will take time to configure it and increment it’s functionality. I am currently reading Jenkins: Definitive Guide, and I am trying to obtain the following functionalities:

    • Automated build server
    • Automated junit test server
    • Adding metrics
    • Automated test env deployment and Acceptance Testing
    • Continuous Deployment

    Until this will be accomplished the wars will be deployed through bash scripts. I just scp the war to the server (no exploding/rewarring).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We currently have an ASP.NET Web Application running on a single server. That server
I have a web application that currently sends emails. At the time my web
Currently I have an application that receives an uploaded file from my web application.
I have a web application that's branded according to the user that's currently logged
I have a web application that can load plugins through reflection. It currently uses
I'm currently writing a web application that have about 6-12 pages. On each one
I currently have a web application that is utilizing Spring Security hosted on a
I currently have a web-application that implements a rudimentary form of ACL using UNIONs
I have currently have a web application that caches a large amount of data
I currently have a web application project that also includes web services within the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.