The exe version of Tomcat already gives you the option of installing Tomcat as a windows service. The .zip version has a batch script in /tomcat/bin for making an existing Tomcat install into a Windows service.
Thanks Ben. I was able to install Tom Cat as service via service.bat but then I opened http://localhost:8080/ in my local browser, it did not respond though service uis running.
1- Downlaoded TomCat 2- Extracted Tomcat 3- Insatll Tomcat as service via service.bat 4- Run Tom Cat service via Windows Service Manager 5- Open Browser and hit page http://localhost:8080/ and did not get any thing.
Any idea what is going wrong ?? How can I debug this problem ??
One more thing, I am working on desktop application and I want to use embedded tomcat with my application. I was thinking to run my java program using embedded tomcat jars as windows service but this medthod(service.bat) treats only full tomcat. Is there any way, I can install my java application as Windows Service. I have used java service wrapper and I can successfully do that but my manager wants me to explore commons daemon for doing that. We are windows based by the way.
Joined: Oct 19, 2004
Okay I found the problem. My service actually stopped itself. Any idea ?
[2007-03-22 15:50:36] [info] Running Service... [2007-03-22 15:50:36] [info] Starting service... [2007-03-22 15:50:38] [info] Service started in 1140 ms. [2007-03-22 15:50:42] [info] Run service finished. [2007-03-22 15:50:42] [info] Procrun finished.