Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-10-04       - By Peter Crowther

 Back
> From: King, Sean [mailto:Sean.King@(protected)]
> 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
unpleasant).

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: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)