tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koen Dejonghe" <koen_dejon...@hotmail.com>
Subject Re: Installing Tomcat as a Service
Date Wed, 24 May 2000 00:55:48 GMT
As far as I understand it it's already in there:


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

Regards,

Koen Dejonghe


>From: Jacob Kjome <jacob.r.kjome@syntegra.com>
>Reply-To: tomcat-user@jakarta.apache.org
>To: tomcat-user@jakarta.apache.org
>Subject: Installing Tomcat as a Service
>Date: Tue, 23 May 2000 17:16:49 -0500
>
>
>Taking instructions from this document:
>
>http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/NT-Service-howto.html
>
>
>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"?>
>
><Server>
>     <!-- 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:
>             FATAL
>             ERROR
>             WARNING
>             INFORMATION
>             DEBUG
>          -->
>
>     <Logger name="tc_log"
>             path="logs/tomcat.log"
>             customOutput="yes" />
>
>     <Logger name="servlet_log"
>             path="logs/servlet.log"
>             customOutput="yes" />
>
>     <Logger name="JASPER_LOG"
>             path="logs/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" />
>         <ContextInterceptor
>className="org.apache.tomcat.context.DefaultCMSetter" />
>         <ContextInterceptor
>className="org.apache.tomcat.context.WorkDirInterceptor" />
>         <ContextInterceptor
>className="org.apache.tomcat.context.WebXmlReader" />
>         <ContextInterceptor
>className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
>         <!-- Request processing -->
>         <RequestInterceptor
>className="org.apache.tomcat.request.SimpleMapper" debug="0" />
>         <RequestInterceptor
>className="org.apache.tomcat.request.SessionInterceptor" />
>         <RequestInterceptor
>className="org.apache.tomcat.request.SecurityCheck" />
>         <RequestInterceptor
>className="org.apache.tomcat.request.FixHeaders" />
>
>         <Connector 
>className="org.apache.tomcat.service.SimpleTcpConnector">
>             <Parameter name="handler"
>value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>             <Parameter name="port" value="8080"/>
>         </Connector>
>
>         <Connector 
>className="org.apache.tomcat.service.SimpleTcpConnector">
>             <Parameter name="handler"
>value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
>             <Parameter name="port" value="8007"/>
>         </Connector>
>
>         <!-- example - how to override AutoSetup actions -->
>         <Context path="/examples" docBase="webapps/examples" debug="0"
>reloadable="true" >
>         </Context>
>         <!-- example - how to override AutoSetup actions -->
>         <Context path="" docBase="webapps/ROOT" debug="0" 
>reloadable="true" >
>         </Context>
>
>         <Context path="/test" docBase="webapps/test" debug="0"
>reloadable="true" >
>         </Context>
>
>         <Context path="/myapp" docBase="webapps/myapp" debug="0"
>reloadable="true" >
>         </Context>
>
>     </ContextManager>
></Server>
>
>
>Jake

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message