tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Installing Tomcat as a Service
Date Tue, 23 May 2000 22:16:49 GMT

Taking instructions from this document:

What is meant by this:

Special note: 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 it a chance to 
clean up.

What is the syntax I would use to add the connector in the server.xml file?

Here is my server.xml file below.  Can someone spell out how to avoid this 
"murderous" shutdown?:

<?xml version="1.0" encoding="ISO-8859-1"?>

     <!-- Debug low-level events in XmlMapper startup -->
     <xmlmapper:debug level="0" />

     <!-- This is quite flexible; we can either have a log file per
          module in Tomcat (example: ContextManager) or we can have
          one for Servlets and one for Jasper, or we can just have
          one tomcat.log for both Servlet and Jasper.

          If you omit "path" there, then stderr should be used.

          verbosityLevel values can be:

     <Logger name="tc_log"
             customOutput="yes" />

     <Logger name="servlet_log"
             customOutput="yes" />

     <Logger name="JASPER_LOG"
             verbosityLevel = "INFORMATION" />

     <!-- Add "home" attribute if you want tomcat to be based on a 
different directory
          "home" is used to create work and to read webapps, but not for 
libs or CLASSPATH.
          Note that TOMCAT_HOME is where tomcat is installed, while 
ContextManager home is the
          base directory for contexts, webapps/ and work/
     <ContextManager debug="0" workDir="work" >
         <!-- ContextInterceptor 
className="org.apache.tomcat.context.LogEvents" / -->
         <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
className="org.apache.tomcat.context.DefaultCMSetter" />
className="org.apache.tomcat.context.WorkDirInterceptor" />
className="org.apache.tomcat.context.WebXmlReader" />
className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
         <!-- Request processing -->
className="org.apache.tomcat.request.SimpleMapper" debug="0" />
className="org.apache.tomcat.request.SessionInterceptor" />
className="org.apache.tomcat.request.SecurityCheck" />
className="org.apache.tomcat.request.FixHeaders" />

         <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
             <Parameter name="handler" 
             <Parameter name="port" value="8080"/>

         <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
             <Parameter name="handler" 
             <Parameter name="port" value="8007"/>

         <!-- example - how to override AutoSetup actions -->
         <Context path="/examples" docBase="webapps/examples" debug="0" 
reloadable="true" >
         <!-- example - how to override AutoSetup actions -->
         <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" >

         <Context path="/test" docBase="webapps/test" debug="0" 
reloadable="true" >

         <Context path="/myapp" docBase="webapps/myapp" debug="0" 
reloadable="true" >



View raw message