You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Altug B. Altintas" <al...@riskturk.com> on 2003/12/04 16:57:24 UTC
Restarting tomcat from web page
Hi
How can i restart Tomcat which is running as service, from a web page
1 - calling bat file ? (not working)
2 - calling http://localhost:8080/manager/html/start?path=/engine (asking
password)
any clean way ?
Regards
Altug.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Restarting tomcat from web page
Posted by Rodrigo Ruiz <rr...@gridsystems.com>.
The only way to restart a Windows service is through native code. You
could use JNDI, or Runtime.exec() to run a "net stop & net start"
script, or a perl script, or a vbs one... there are many options here :-)
Apart from protecting the page, I would also implement a first step with
a countdown, so you can abort the restart operation if you want :-P
Regards,
Rodrigo Ruiz
Tim Funk wrote:
> I have heard of this done by using a second webserver with perl
> installed and then using Perl Win32 calls from webserver A to
> webserver B to restart the server.
>
> You could always run the other webserver on a high protected port so
> you don't need a second box.
>
> -Tim
>
> Altug B. Altintas wrote:
>
>> Hi
>> How can i restart Tomcat which is running as service, from a web page
>> 1 - calling bat file ? (not working)
>> 2 - calling http://localhost:8080/manager/html/start?path=/engine
>> (asking
>> password)
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Restarting tomcat from web page
Posted by Tim Funk <fu...@joedog.org>.
I have heard of this done by using a second webserver with perl installed and
then using Perl Win32 calls from webserver A to webserver B to restart the
server.
You could always run the other webserver on a high protected port so you
don't need a second box.
-Tim
Altug B. Altintas wrote:
> Hi
> How can i restart Tomcat which is running as service, from a web page
> 1 - calling bat file ? (not working)
> 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking
> password)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org