How do I set up Tomcat as a NT Service?

Are Bjolseth

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.

  1. Get jk_nt_service.exe from jk_nt_service.exe.
  2. Copy this file to c:/jdk1.3/jre/bin/classic/
  3. Edit 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"!!!
  4. cd c:jdk1.3jrebinclassic since jvm.dll is located there!!!
  5. jk_nt_service.exe -i Jakarta-Tomcat
  6. net start Jakarta-Tomcat

Test the installation with a browser http://localhost:8080/examples/jsp/

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.

  1. Install Tomcat 3.2.1 with Apache 1.3.14 home dir
  2. Add the line at the very end of  %APACHE_HOME%confhttpd.conf 
    # Include the configuration for jakarta-tomcat
    Include "jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto"
  3. copy mod_jk.dll to %APACHE_HOME%modules
  4. Start Tomcat-3.2.1, mod_jk.conf-auto is automatically created from contents in server.xml
  5. Start Apache.
  6. Test http://localhost:80/examples/jsp/


Are Bjølseth
Scandinavian IT Group

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact