You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vlad <hv...@rambler.ru> on 2007/01/24 20:41:37 UTC
how to detect whether Tomcat has finished starting completely on Windows?
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!
--
Vlad .
--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
http://irr.rambler.ru/
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to detect whether Tomcat has finished starting completely
on Windows?
Posted by David Delbecq <de...@oma.be>.
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 <an...@gmail.com> [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 <hv...@rambler.ru> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to detect whether Tomcat has finished starting completely on Windows?
Posted by Vlad <hv...@rambler.ru>.
* Andre Prasetya <an...@gmail.com> [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 <hv...@rambler.ru> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to detect whether Tomcat has finished starting completely on Windows?
Posted by Andre Prasetya <an...@gmail.com>.
There are many ways
1. Parse the localhost log cek for startup completed or something like that
2. telnet to your server at tomcat port
3. try requesting something from your tomcat
On 1/25/07, Vlad <hv...@rambler.ru> 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!
>
> --
> Vlad .
>
> --
> Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
> http://irr.rambler.ru/
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
-Andre-
People see things the way they are and say "why ?" I see things that never
were and say "Why not ?"