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
problems...it 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 $8.95/month.
http://geocities.yahoo.com/ps/info1

Reply via email to