Did you try adding an |org.apache.catalina.LifecycleListener to the engine entry? I see there is an event | org.apache.catalina.Lifecycle.AFTER_START_EVENT that gets called after the start of component.
En l'instant précis du 01/25/07 08:50, Vlad s'exprimait en ces termes: > * Andre Prasetya <[EMAIL PROTECTED]> [Thu, 25 Jan 2007 10:55:51 > +0700]: >> There are many ways >> 1. Parse the localhost log cek for startup completed or something like >> that > > Thank you for this idea, it seens this is a way to go! > >> 2. telnet to your server at tomcat port > > As I said earlier, there is a period when it listens on port, but > returns http error message about "no host found". > >> 3. try requesting something from your tomcat > > This requires some knoweledge about site structure (and the url to > peak).. It's not an option for us. > > But checking the logs seems to be a best option, thanks again! > > > -- > Vlad . > >> >> On 1/25/07, Vlad <[EMAIL PROTECTED]> wrote: >> > >> > Hello, >> > >> > We are planning to use latest Tomcat from 5.x branch on Windows. > It's >> > started using 'bin/catalina.run bat' (please don't offer to run it > as >> a >> > service!). Our application requires Tomcat to be often started (and >> > stopped) and we wish to enable certain button in the GUI once it's >> > started completely. >> > >> > We have a problem - we can't find a way to reliably determine > whether >> > it has finished started or not. >> > In the middle of startup, it even responds to http requests - but >> > returns http error code 400 with error message like >> > No Host matches server name 127.0.0.1 >> > >> > What is the recommended way to determine whether Tomcat has finished >> > starting up? >> > >> > Thank you very much for your answers in advance! >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]