>From the point of view of Jetty...
The webapp is started, which means it undergoes a series of configuration
steps (such as annotation scanning, jndi setup, WEB-INF/web.xml loading,
ServletContainerInitializer execution, servlet init(), etc ...).  Once the
webapp startup is completed it is available to receive requests per the
servlet spec.
However, based on your experience, something is initializing outside of
these standard processes.
In such a scenario, there is nothing jetty can do to determine if the
webapp is started and available to receive requests.
You are now in an app specific problem space, you'll need to interrogate
the app itself to determine if it is available for requests or not.


--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Thu, Feb 20, 2014 at 3:39 AM, Andrea Cappelli <[email protected]>wrote:

> Hi,
> I have a jetty instance listening on http 8080 with 3 webapps
>
> Inside logs I can see when jetty is started beacause I see the bind to the
> port, but I can't figure how to check if the webapps are running
>
> I can see in the log
>
> 2014-02-20 11:28:32.172:INFO:oeja.AnnotationConfiguration:main: Scanned 0
> container path jars, 197 WEB-INF/lib jars, 1 WEB-INF/classes dirs in
> 11922ms for context o.e.j.w.WebAppContext@3f3e10ce
> {/bookingonline-ct-test,file:/var/jolie/webreserv/jetty-
> instances-available/ct/apps-available/bookingonline-ct-
> test/,STARTING}{/var/jolie/webreserv/jetty-instances-
> available/ct/apps-available/bookingonline-ct-test}
>
> so it took 12s to read the configurations; but after this log is emitted
> the app is not yet started, if I try to access via browser I receive a 404
> Not found.
>
> After a certain amount of time the app start to work
>
> How can I check the startup of a webapp?
>
> --
> Andrea Cappelli
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to