Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 4.0 Startup/Shutdown Question (newbie)

Status
Not open for further replies.

brs154

IS-IT--Management
Jun 2, 2003
22
0
0
US
Hello,
I am using Tomcat 4.0 along with MS IIS 5 to run a webapp called Annodoc. When tomcat is manually started and the desktop is locked all functions correctly. However I need to have Tomcat restart every morning. Since a user needs to be logged on to manually launch the Tomcat batch file (scheduled task doesn't work), I am having trouble automating this. Is their anyway to have Tomcat launch itself when no one is logged on the server (like a Service does). P.S. I don't want to make the entire the server reboot.
Thanks
 
Start-->Settings-->Control Panel-->Scheduled tasks-->Add Schecduled Tasks

and browse to : tomcat_home/bin/startup.bat
 
Thanks,
I was able to just create a service for Tomcat at the command prompt:
"%CATALINA_HOME%\bin\tomcat.exe"
-install "Apache Tomcat"
"%JAVA_HOME%\jre\bin\server\jvm.dll"
-Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar"
-Dcatalina.home="%CATALINA_HOME%"
-Xrs
-start org.apache.catalina.startup.Bootstrap -params start
-stop org.apache.catalina.startup.Bootstrap -params stop
-out "%CATALINA_HOME%\logs\stderr.log"
Similarly to how Tomcat 5.0 functions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top