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

  • SEARCH
  • Home
  • 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 9149213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:26:47+00:00 2026-06-17T11:26:47+00:00

I am having war file deployment at customer site. War file contains lib folder

  • 0

I am having war file deployment at customer site. War file contains lib folder which contains dependent jars e.g.

/lib/app-01.jar
/lib/spring-2.5.1.jar
/lib/somefile-1.2.jar
…
…

If we need to update lets say app-01.jar to app-02.jar, is there any elegant solution? how does these dependent jars are packaged into WAR file as industry standard?

Is it good idea to package those dependent jars without version number?
e.g.

/lib/app.jar
/lib/spring.jar
/lib/somefile.jar
…
…

EDIT NOTE:
Actually, War is deployed to Webshpere, WebLogic, Tomcat on Windows or Linux platform. And Customer’s IT department is involved for deployment

  • 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-06-17T11:26:48+00:00Added an answer on June 17, 2026 at 11:26 am

    Probably the most elegant solution is just to generate a new war, and deploy it.

    Here are the reasons:

    • If you are worried about uptime, some application servers supports side by side deployment. It means that you can deploy a new version and have it up at the same time of the old one. And stop the old when no one is using it. (I’ve used that on WebLogic, like 5yrs ago, so I suppose that is a common feature now). But that kind of feature only works if you deploy a new .WAR version.

    • Probably the WAR was generated using Maven, Ant or Gradle, so changing the dependency version and do a mvn package is usually faster and less error prone than unzipping the WAR, change it, and zip it again.

    • All the application servers provides a “hot replace” feature, that works by refreshing the class loader. Its fine for development, but in production it can be problematic (class loader leaks can be common, and problems caused by incorrect initialization or bad programming practices can give you unexpected bugs like having two versions of a class)

    About JAR file names: I recommend to keep the versions on the file name.
    Most of the JARs contains version information inside META-INF/Manifest.mf. But if for some reason you have to know which versions are using your app… opening each JAR file to see the version in the manifest is a lot of work.

    As a final advice. If you don’t use any automatic build tool… adopt one (take a look to Gradle, which is nice). Updating a library version, usually consist on changing the version number on the build file and execute something like gradle deploy. Even if you are not the developer, but the one in charge of devops, having an automated build is going to help you with deployments and updates.

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

Sidebar

Related Questions

I have a Spring+Hibernate application, which I compile to *.war file and deploy it
I am trying to build a war file with Gradle, but I'm having an
We have a big application having 13 modules. We want to create war file
I am trying to deploy my spring application in a server machine which having
I'm having some serious trouble properly deploying Web Application Bundle (OSGi-fied WAR) on GlassFish
Having trouble with an .htaccess file on WAMP. Works on the live server, but
I am having a little trouble getting my deployment task in ant to function.
I'm having problems when I'm trying to deploy on JBoss 6.0 a roo spring
I have a maven project that is generating a .war file. I want to
I am implementing spring security framework in my web app. I have all 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.