Services to start and stop Tomcat

I have Tomcat 4.1.27 on a Windows 2000 Server where the startup.bat doesnt work and I have to startup the container using the Windows Services tool. The server also doesnt show any Tomcat console window so I can see what is happening.

The startup.bat just pulls up a window real quick and it disappears and the container never starts up. The shutdown.bat does shut down the container but I use the Server Services to shutdown the container when needed.

Please advise if this is normal and anyway to change it to how I have it in my local develper environment. In my local developer env, I use startup.bat and shutdown.bat and see Tomcat console window after it is started up and the console window stays up so I can view it.

[743 byte] By [oaklandara] at [2007-11-27 11:00:50]
# 1

Go to the command line (start => execute => type in "cmd")

Then navigate to the tomcat bin folder (something like cd jsp/tomcat5/bin), type startup.bat and check what it says, could display some error that is easily fixed (will stay in cmd and not go away when it finishes)

radicjesa at 2007-7-29 12:32:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

I have the same env. I faced the same problem. Go to cmd prompt and go to tomcat bin directory, before that set the JAVA_HOME in the windows Env properties or open Catlina.bat file and set the JAVA_HOME. After setting the JAVA_HOME setup, give the command as like this "catalina run" in the command prompt, the command prompt window will not be disappered. If you give "Catlina start" a new tomcat startup window will be opened. If any error occurs on startup the window gets disappered.

Let me know you need some more help.

Cheers!!!

Sundaram.

r_ksundarama at 2007-7-29 12:32:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Thanks,

I now cant access the server anymore because System admins restricted it. They want to use the Windows Services Startup and Stop tool to startup and stop the Tomcat container as needed when I request it. Is this okay or do any harm to the Tomcat container and my web apps?I assume I can always see how the Container is doing by looking at the log files.

oaklandara at 2007-7-29 12:32:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...