tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Crowther" <>
Subject RE: Webapp load order tomcat 4 vs tomcat 5
Date Thu, 04 Oct 2007 13:36:11 GMT
> From: King, Sean [] 
> For the application to run correctly, app2 must be deployed and start
> before app1. Using tomcat 5 this does not seem to be a problem. When I
> start tomcat, app2 is deployed and then app1 starts and is able to
> access jars in app2. I am hoping that this start order is not 
> just pure chance!!

It is, indeed, pure chance.

> I am now trying to port the application back to tomcat 4. 
> Unfortunately
> I am consistently seeing that app1 starts first and then app2 is
> deployed from the war. Since app1 depends on app2 this is a major
> problem.
> Is there any way in tomcat 4 to force the war file to be 
> deployed first?

Hack the Tomcat source and recompile :-).

More seriously, no, you can't rely on the startup order of webapps.  As
I recall, you can't even assume that only one will be started at one
time (I'm sure the more experienced list members will correct me if the
spec disallows this).  You can try playing around with filenames until
the order magically reverses, or you can amend the apps so that app1
doesn't need to access jars in app2 (which is, anyway, a bit

Can you give us more information about why app1 needs app2 to start
first?  There may well be ways round the problem.

		- Peter

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message