You SHOULD able to make a selection whether you want to make your Tomcat server to run as a Service during the installation, i try Tomcat 4.0.6 and it allow me to select this. And this should apply for the Tomcat version above that.
Another workaround is, try to create a batch file that include the run statement of Tomcat, then put the batch file to run at Startup, do it similarly when you create a new entry to Registry at:
HKEY_LOCAL_MACHINE\SOFTWAR
The command of running Tomcat server will be something like:
C:\jdk1402\bin\java.exe -jar -Duser.dir="G:\Tomcat406" "G:\Tomcat406\bin\bootstra
if still not working , try reinstall the Tomcat server, as what JConchie suggested.
regards
Main Topics
Browse All Topics





by: JConchiePosted on 2004-04-14 at 15:44:54ID: 10828538
Found this....can't vouch for it from experience, but it seems worth a try.
-install "Apache Tomcat" "%JAVA_HOME%\jre\bin\class ic\jvm.dll " -Djava.class.path="%CATALI NA_HOME%\b in\bootstr ap.jar;%JA VA_HOME%\l ib\tools.j ar" -Dcatalina.home="%CATALINA _HOME%" -Xrs -start org.apache.catalina.startu p.Bootstra p -params start -stop org.apache.catalina.startu p.Bootstra p -params stop -out "%CATALINA_HOME%\logs\stde rr.log"
t.exe" -uninstall "Apache Tomcat"
October 3, 2003
Run tomcat as a windows service
October 3, 2003
If you want to run tomcat as a windows service, there are two ways to do it. Once is while installing choose to install as service, or if you already have installed it through command line, then you can run the following command to install tomcat as a service.
%CATALINA_HOME%\bin\tomcat
The above command will install tomcat as a service. If this fails then its possible that tomcat.exe is not there in %CATALINA_HOME%\bin\ directory. You can just download tomcat again and extract tomcat.exe and put this into the directory. ( I was not having this in my tomcat local directory because when installing for the first time I choose NOT to install it as a service).
After installing the service, you can either go to control panel/administrative tools/services and start and stop the service, or you can run it from command line
net start "Apache Tomcat" // to start the service
net stop "Apache Tomcat" // to stop the service.
If you ever want to uninstall tomcat as a service you can run this command
"%CATALINA_HOME%\bin\tomca
Service not starting?
When I did this my service did not start properly, and I went to the event viewer log to see the problem. It was not able to find jvm.dll in the path so I had to search and correct the path for dll and things worked just fine. Note that when I made the path change, i had to first uninstall the service and then install it again.