How do I set up Tomcat as a NT Service?
Hi, I configured Tomcat as a NT Service Control Manager Application, successfully, and like to share the procedure with the community.
I assume that Jakarta-Tomcat 3.2.1 is allready installed and run smoothly.
- Get jk_nt_service.exe from jk_nt_service.exe.
- Copy this file to c:/jdk1.3/jre/bin/classic/
- Edit %TOMCAT_HOME%confwrapper.properties with i.e. wrapper.tomcat_home=c:progra~1apache~1Apachejakarta-tomcat-3.2.1
Note! The ~ in the path is used instead of "Program FilesApache Group"!!!
- cd c:jdk1.3jrebinclassic since jvm.dll is located there!!!
- jk_nt_service.exe -i Jakarta-Tomcat c:progra~1apache~1Apachejakarta-tomcat-3.2.1confwrapper.properties
- net start Jakarta-Tomcat
You can also build jk_nt_service.exe from sources with VC 6.0. You'll need source code from both Apache 1.3.14 and Tomcat 3.2.1
No more barking up the wrong tree to make this work. Rember to inspect the Service Control Manger dialog and set the Startup option from "Manual" to "Automatic", so it starts automatically next time you boot your server.
Uninstall is simply: jk_nt_service.exe -r
The NT Service control works best in tandem with Apache started as NT Service.
Configuring Apache with Tomcat as an JSP and servlet processor is easy, and I'll describe the procedure in another posting but here is an brief outline.
- Install Tomcat 3.2.1 with Apache 1.3.14 home dir
- Add the line at the very end of %APACHE_HOME%confhttpd.conf
# Include the configuration for jakarta-tomcat
- copy mod_jk.dll to %APACHE_HOME%modules
- Start Tomcat-3.2.1, mod_jk.conf-auto is automatically created from contents in server.xml
- Start Apache.
- Test http://localhost:80/examples/jsp/
Scandinavian IT Group