File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Starting/Stopping Tomcat Services Remotely Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Starting/Stopping Tomcat Services Remotely" Watch "Starting/Stopping Tomcat Services Remotely" New topic

Starting/Stopping Tomcat Services Remotely

Kevin Homan

Joined: Jun 08, 2010
Posts: 1
Hello; this is most likely a very noob question, and I apologize.

I was wondering if it was possible to start and stop the Tomcat services on a Server, from a Workstation. Currently our users have to go to the server to start and stop Tomcat when doing their work. I am supporting a remote customer in trying to find an answer and they are asking me to look at one of two options to see if they will work;

1. Can you write a script on the workstation within the startup and shutdown .bat files which can remotely start and stop the service on the server?
2. If the above cannot be done, can you run the start/stop scripts over sc.exe (the workstations are Windows, the server Linux).

In talking with people the consensus seems to be that using remote desktop or Terminal Services (mstsc) would be the way to go. Thanks for any help you guys can provide.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
You can look at Tomcat Manager , but allowing the users to start/stop tomcat services sounds a little bit weird for me.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

I use ssh, and in Windows, that's PuTTY unless I've bulked up the machine with cygwin (and sometimes even then!). I've also got Tomcat running as a service, so that means I can log in, do a "sudo /sbin/service tomcat restart" and go on my merry way.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Starting/Stopping Tomcat Services Remotely
It's not a secret anymore!