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 6131187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:56:42+00:00 2026-05-23T16:56:42+00:00

I have 3 wars in my webapp folder. Two of them are built on

  • 0

I have 3 wars in my webapp folder. Two of them are built on services of the third one. I’m in a testing environment, i.e. I don’t have control over their architectures, so I’m no able to change a thing. So…

Question: Is there a way to enforce a deployment order in tomcat?

I’ve ran into one question here in stackoverflow, but there’s no solution.

Well, actually the guy suggests that changing the name of the webapps to an alphabetical order would help. However, I’m not willing to do that everytime I need to test those and different wars.

I’m positive that there’s a way of doing that configuring one of the tomcat conf .xml files. I just don’t know which one.

  • 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-23T16:56:43+00:00Added an answer on May 23, 2026 at 4:56 pm

    From the Tomcat Wiki – What order do webapps start (or How can I change startup order)?

    There is no expected startup order. Neither the Servlet spec nor
    Tomcat define one. You can’t rely on the apps starting in any
    particular order.

    Tomcat has never supported specifying load order of webapps. There are other containers like JBoss that do, but Tomcat never has. Any apparent behavior that looks like load ordering via the alphabetical order of the names of the web apps is coincidental and not guaranteed to work in all cases.

    What you are probably thinking of is the <load-on-startup/> element if the web.xml that specifies order of loading servlets.

    That said there is an elegant solution using a service discovery protocol.

    One solution is to use something like ZeroConf and register your services when they start up, and then have the dependent apps look for when these services come available and have them connect and do what ever they need to do when the service is ready. This is how I have been handling multiple dependent services for years now. I have Python, Java and Erlang services all discovering each other via ZeroConf seemlessly.

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

Sidebar

Related Questions

I have two WARS: base-overlay example-app base-overlay has XML config files in src/main/webapp/WEB-INF/spring/*.xml .
I have two wars, foo.war and bar.war. foo uses classes from bar. I'm trying
I try to run two wars on jetty. I have got this configuration. <groupId>org.mortbay.jetty</groupId>
I have a problem. I have two web apps deployed as wars. Let's call
I have two WARs deployed to the same Tomcat 7 instance, and both use
I have been pondering a lot lately over, why should one use tomcat manager
I have two two WARs running in different servers (probably in different machines as
I have a simple tank wars style game using the allegro open source library.
I have a web application with multiple WARS. These WARS all perform different functions
We have a solution with numerous wars. Wars are similar in the sense they

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.