tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luiz Guilherme Freitas de Paula" <>
Subject RES: Tomcat running on NT4 server
Date Fri, 28 Jul 2000 17:33:52 GMT

Thank you all for your support.
It worked after a few tries (had problems with paths with spaces).

Luiz Guilherme

-----Mensagem original-----
De: David M. Holmes []
Enviada em: sexta-feira, 28 de julho de 2000 12:53
Assunto: RE: Tomcat running on NT4 server

Use the jk_nt_service.exe to setup Tomcat to run as service...

--- Jaime Vasquez <> wrote:
> Gal Shachor from IBM help me out on this one a couple of months ago here
> the stuff he provided
> Jaime Vasquez
> (781) 238 - 6144 ext. 14
> -----Original Message-----
> From: Luiz Guilherme Freitas de Paula []
> Sent: Friday, July 28, 2000 9:34 AM
> To:
> Subject: Tomcat running on NT4 server
> Hi,
> How can I start Tomcat in my NT4 server without having to log on and use
> BAT file?
> Is there a way to use it like a service?
> Thanks,
> Luiz Guilherme

> ATTACHMENT part 2 application/octet-stream name=jk_nt_service.exe


$Header: /home/cvs/jakarta-tomcat/src/doc/NT-Service-howto.html,v 1.2
2000/05/03 13:38:18 shachor
Exp $
$Revision: 1.2 $
$Date: 2000/05/03 13:38:18 $

<meta http-equiv=Content-Type content="text/html">
<title>Working with the Jakarta NT Service</title>


<h1>Working with the Jakarta NT Service</h1>

<p>By Gal Shachor
<tt>&lt;<a href=""></a>&gt;

<p>The Jakarta NT service is an executable that wraps the
Tomcat servlet container and executes it in the background as an NT service.
install it you will need to:</p>

 <li>Get a
     hold on the NT executable (jk_nt_service.exe)</li>
      the executable from <a

      and save it under the name jk_nt_service.exe.</li>
     a properties file that provides the service with Tomcat information
      a template from <a

      and save it under the name</li>
      the wrapper.tomcat_home property to point at your tomcat home.</li>
      the wrapper.java_home property to point at your Java home.</li>
     jk_nt_service by running it with the -i flag.</li>
      jk_nt_service -I &lt;name of service&gt; &lt;path to updated wrapper
      of service&gt; should be a single word (without and spaces) such as
      to updated wrapper properties&gt; should point to your
      file (and the service will check it's existence.)</li>
      example, a valid command line can be jk_nt_service -I Jakarta</li>
     tomcat as a service.</li>
      the command line, execute net start &lt;name of service&gt; (e.g. net
      start Jakarta)</li>
      the NT services applet, highlight your service and press start.</li>
     Tomcat as a service.</li>
      the command line, execute net stop &lt;name of service&gt; (e.g. net
      stop Jakarta)</li>
      the NT services applet, highlight your service and press stop.</li>

<p><b>Special note</b>: The Tomcat service is using AJPV12 to
perform clean shutdown and you should make sure that an AJPV12 connector is
defined in your server.xml. In the absence of a configured AJPV12 port the
Tomcat service will kill Tomcat abruptly (that is murder it) without giving
a chance to clean up. </p>

<h1>Advance Setup</h1>

     the Tomcat NT service properties. By default the service will run in
     mode and under the local system user account. To modify this, open the
     services applet, highlight your service and press startup. A popup
     is opened and you will be able to customize the service to your
     the classpath. The classpath is determined by the wrapper.class_path
     properties, to modify it just add/remove/modify wrapper.class_path
     The complete classpath is calculated by concatenating all the
     wrapper.class_path lines and putting &quot;;&quot; between them.</li>
     several Tomcat instances. Say that you want one Tomcat to run for
     &quot;production&quot; and one for development, you can do that. All
     will need to do is to install the Tomcat service twice and under two
     different names (and with different file and
     files). </li>
      sure that the AJPV12 and HTTP connectors are modified in each
      file to prevent a clash.</li>
      sure to update the wrapper.shutdown_port property in
      to point to the correct AJPV12 shutdown ports (default is 8007). </li>
     the command line used to start Tomcat. The Tomcat service is taking all
     it's command line configuration from! To customize
     command line, edit the property wrapper.cmd_line and make sure that it
     makes a legal Java command line.</li>


<p>Please send feedback, bug report or any additional information to


Do You Yahoo!?
Kick off your party with Yahoo! Invites.

View raw message