File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
specifying context startup order
Joined: Apr 19, 2005
Jun 12, 2005 16:38:00
This is a
I have a webapp which has a
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.
Joined: Aug 31, 2004
Jun 24, 2005 17:28:00
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.
I agree. Here's the link:
subject: specifying context startup order
Multiple Server Mappings (Spring)
How to run a servlet using Tomcat?
Bean initialization in spring
Is it possible to deploy two wars in the same context?
ServletContextListener and load-on-startup
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014