tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "leandro" <>
Subject Re: Remote Tomcat Restarting
Date Sat, 06 Oct 2001 13:40:28 GMT
Hi Gautam,

     In my job I use the RCMD service and all work fine. You can install
this service in target server and run in your machine "rcmd \\target path of
the batch file". I think it´s solve tour problem.

----- Original Message -----
From: "Gautam Upadhyaya" <>
To: <>
Sent: Saturday, October 06, 2001 3:11 AM
Subject: Remote Tomcat Restarting

> Hello everyone!
> Recently a need came up for developing a servlet which
> would allow remote configuration of Tomcat. I am
> calling the shutdown and startup scripts from a batch
> file. The OS is WinNT.
> I have the following problem...
> When I call the batch file from the servlet, the
> Tomcat shutdown and startup scripts don't seem to be
> working. If I call the same batch file from the
> command line, everything works fine. I am using the
> following syntax:
> Runtime.getRuntime.exec("<path of the batch file>");
> I know that the batch file is being called because
> other commands (such as starting windows explorer
> etc.) are working. It is just the Tomcat startup and
> shutdown scripts that are not working.
> What am I doing wrong? Does anyone have an alternate
> solution that I could try. It is important to do this
> remotely. I have even tried calling the
> org.apache.tomcat.startup.Tomcat class directly. Same
> works when called from the command line
> but does not work if called from the servlet.
> Any input would be greatly appreciated.
> Thanks
> Gautam Upadhyaya
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just

View raw message