I have a webapp which has a servlet that is set to load on startup. That servlet depends on another context (namely slide) being loaded already.
It used to work fine, and then it stopped working. The servlet would hang at the moment it tried to get a connection to the slide repository.
This is not proof that webapp startup order is the problem, but it is a strong indicator in that direction.
So...my question is: How can I specify the startup order of webapps?
This would not seem to be a rare problem, but I haven't found any solutions yet.
posted 11 years ago
I believe they are loaded in the order in which they are added to server.xml. However, if you wanted, you could add a line of debugging to each application and check the log file entry's timestamp to see which loaded first.