Hi,
I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache
website.
I am running windows 7 64 bit operating system.
I have setup the file setenv.bat file and apache starts without any problem
when started using startup.bat script.
To run apache as a windows service I did the following steps:
1. Extracted the zip to location C:\tmp
2. Opened command line in the said folder and ran command :
"tomcat7 //IS//"
3. Then ran command :
"sc start tomcat7"
Following was the output :
C:\tmp\apache-tomcat-7.0.52\bin>tomcat7.exe //IS//
C:\tmp\apache-tomcat-7.0.52\bin>sc start tomcat7
SERVICE_NAME: tomcat7
TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE,
IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x7d0
PID : 1848
FLAGS :
C:\tmp\apache-tomcat-7.0.52\bin>sc query tomcat7
SERVICE_NAME: tomcat7
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1066 (0x42a)
SERVICE_EXIT_CODE : 1 (0x1)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\tmp\apache-tomcat-7.0.52\bin>
Am I missing anything. Please help.
--
*Akshay Jain*