A How-To Document
* NOTE! Make sure Tomcat is NOT running before you begin.
Running Tomcat on a different port
* NOTE! The Tomcat web server runs (by default) on port 8080. The standard port for websites is port 80.
If you have no conflicting web services running on port 80, you can opt to run Tomcat on 80. To do this, complete the following steps:
Open C:\TOMCAT\conf\server.xml with Notepad or Wordpad, find the line the reads:
<Http10Connector port="8080"
and change the port to 80 (or the port you desire).
Running Tomcat as a service
Download and extract the jk_nt_service.zip file (available HERE).
Place the newly-extracted file jk_nt_service.exe (not the .zip) into the C:\jdk1.3.???\jre\bin\classic folder
Configure the C:\TOMCAT\conf\jk\wrapper.properties as follows:
wrapper.tomcat_home=C:\TOMCAT (Same as the TOMCAT_HOME system variable)
wrapper.java_home=C:\jdk1.3.1_08 (Same as the JAVA_HOME system variable)
Comment out the wrapper.cmd_line and copy the following line (all one line) below it:
wrapper.cmd_line="$(wrapper.javabin)" -Djava.security.policy=="$(wrapper.tomcat_policy)" -Dtomcat.home="$(wrapper.tomcat_home)"
-classpath $(wrapper.class_path) -Xmx768m $(wrapper.startup_class) -config $(wrapper.server_xml)
3. At the command prompt, run the following commands:
C:\jdk1.3.1_08\jre\bin\classic\> jk_nt_service.exe -i tomcat C:\TOMCAT\conf\jk\wrapper.properties
C:\jdk1.3.1_08\jre\bin\classic\> jk_nt_service.exe -s tomcat (this one may or may not work depending on your system)
C:\jdk1.3.1_08\jre\bin\classic\> net start tomcat
Tomcat is now installed as a service.
* NOTE! The Tomcat service is created with a manual startup type. You may want to change the startup type to automatic to cause the service to run automatically.