Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C5CC98C1 for ; Sun, 25 Mar 2012 19:53:30 +0000 (UTC) Received: (qmail 58844 invoked by uid 500); 25 Mar 2012 19:53:29 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 58773 invoked by uid 500); 25 Mar 2012 19:53:29 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 58759 invoked by uid 99); 25 Mar 2012 19:53:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Mar 2012 19:53:29 +0000 X-ASF-Spam-Status: No, hits=-1996.9 required=5.0 tests=ALL_TRUSTED,URI_OBFU_WWW X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Mar 2012 19:53:23 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CFCE12388C2C for ; Sun, 25 Mar 2012 19:53:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1305110 [6/10] - in /tomcat/site/trunk/docs/tomcat-3.3-doc: ./ appdev/ appdev/sample/ appdev/sample/etc/ appdev/sample/lib/ appdev/sample/src/ appdev/sample/web/ appdev/sample/web/images/ images/ Date: Sun, 25 Mar 2012 19:53:01 -0000 To: dev@tomcat.apache.org From: markt@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120325195303.CFCE12388C2C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: tomcat/site/trunk/docs/tomcat-3.3-doc/serverxml.html URL: http://svn.apache.org/viewvc/tomcat/site/trunk/docs/tomcat-3.3-doc/serverxml.html?rev=1305110&view=auto ============================================================================== --- tomcat/site/trunk/docs/tomcat-3.3-doc/serverxml.html (added) +++ tomcat/site/trunk/docs/tomcat-3.3-doc/serverxml.html Sun Mar 25 19:52:59 2012 @@ -0,0 +1,3153 @@ + + + + + + + + + + Server.xml Configuration in Tomcat 3.3 + + + + + + + + + + +
The Jakarta ProjectThe mighty Tomcat - Meow!
+ +

Server.xml Configuration in Tomcat 3.3

+ +

General configuration

+ +

Tomcat 3.3 is implemented using a set of modules. Each module has a +number of settable properties and implements one or more 'hooks', providing a +piece of functionality.

+ +

The modules can be configured and assembled in several ways, but the +default and most flexible mechanism uses XML files. Each module is described +by an XML element, with attributes used to set module properties. The main +configuration file is located in TOMCAT_HOME/conf/server.xml, used to +configure the server. Additional TOMCAT_HOME/conf/server-name.xml files +will be read after server.xml, allowing local configurations.

+ + +

Variable substitution

+ +

In Tomcat 3.3.1, each attribute value may use the ant-style variable +substitution by using "${variable}" in the attribute string, i.e. +attribute="text${variable}text". (Note: A +bug prevented this from working in Tomcat 3.3.)

+ +

The variable must specify a ContextManager property or System property, +with ContextManager properties taking precedence. If a matching property +isn't found, the attribute string is left as is. Note that the properties are +not the same as attributes, and attributes are not accessible via variable +substitution.

+ +

There are two predefined ContextManager properties, +"tomcat.home" and "tomcat.install". +These correspond to the ContextManager home and installDir +attributes, respectively. There are three methdos for setting additional +ContextManager properties.

+ +
    +
  1. Include a name="value" + specification on the ContextManager element in server.xml, + where name doesn't correspond to a ContextManager attribute. For + example:
    +
        <ContextManager ... my.prop="myvalue" ... >
  2. +
  3. Include a Property element within the scope of the + ContextManager element in server.xml. For example:
    +
    +    <ContextManager ... >
    +        <Property name="my.prop" value="myvalue" />
    +        ...
    +    </ContextManager>
    + This form of setting properties is logged if the ContextManager's debug + level is one or greater.

  4. +
  5. Include "-name value" as command line + arguments, where name doesn't match any of the arguments supported + by the "start" task. + For example:
    +
        bin/startup -my.prop myvalue
  6. +
+ +

Note: The property values may themselves use "variable +substitution", provided the specified property is already defined.

+ +

Common Parameters

+ +

All modules have the following common attributes:

+ + + + + + + + + + + + +
AttributeDescriptionDefault

debug

+

Display debug information on the module execution

+
0
+ +

Configuration Elements

+ +

Server.xml is an XML document. Most elements correspond to Tomcat modules, +with Java setters being automatically associated with element attributes. The +javadoc will contain most details, in this document we focus on the common +and supported behaviors.

+ +

Parent Configuration Elements

+ +

The purpose of the server.xml is to define the configuration of an instance +of the Tomcat 3.3 web server. The parent configuration elements in the +server.xml file represent that instance.

+ + + +

Server

+ +

This is the main element in server.xml. It has a single child describing +the tomcat configuration, ContextManager.

+ +

Examples

+
<Server>
+   <ContextManager > 
+      ... ( tomcat configuration )
+   </ContextManager>
+</Server>
+ + + +

ContextManager

+ +

Description

+ +

This is the main tag, used to set generic Tomcat options. The following are +some of the childen it supports:

+
+
<module_name>
+
Adds a module to the configuration. Module names are defined in + modules.xml, where each tag is associated with a class name that + implements the module. Each element attribute corresponds to a setter + method in the implementing class.
+
<Context>
+
Defines a web application. This is a legacy method of specifying a + web application. It is included for backward compatibility with older + Tomcats. As a rule, applications should be defined in separate config + files, named apps-name.xml. This way you can configure your + web applications without modifying your server.xml file.
+
<Property name="property_name" value="property_value">
+
Adds arbitrary name/values to ContextManager. The properties can be + used for variable substitutions, instead of attributes.
+
<module name="module_name" javaClass="full.class.name">
+
Adds a module to the configuration. All modules included in the standard + distribution are defined in modules.xml, but you can define additional + tags and their associated class in server.xml. This behaves like taskdef + in ant.
+
+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
installDirBase directory for tomcat installation. It is typically guessed by the + startup program, but you can override it here.TOMCAT_HOME or one level above the location of the startup script or + tomcat.jar (if "java -jar" is used for startup).
workDirDirectory where temporary files will be created. Relative paths are + interpreted as relative to TOMCAT_HOME.work
homeBase directory for the tomcat instance. While 'install' is used to + find the libraries, 'home' is used to resolve almost all relative paths - + webapps, work, etc.TOMCAT_HOME or the value guessed by the startup program.
+ +

Example(s)

+
+<ContextManager install="/opt/tomcat" workDir="/var/tomcat" home="/var" />
+
+ +

Module Configuration Elements

+ +

It is the set of modules and their configuration that control the behavior +of the Tomcat web server. By specifying which modules and their attributes, you +have a lot of flexibility in controlling the features of your instance of +Tomcat.

+ +

Note that "interceptor" is a name that used in the past, prior to +the adoption of the name "module". It should be considered synonomous +with "module". "Interceptor" will appear various in places, +especially in module names and their classes.

+ +

The list of modules below is in alphabetical order. Functionally, they may +be grouped as follows:

+ + + +
+ + + +

AccessInterceptor

+ +

Type: Access, Authentication, and Authorization

+ +

Description

+ +

Determines if security constraints specified in the web.xml apply to +a request and provides the handling for BASIC and FORM authentication if +necessary.

+ +

Attributes

+ + + + + + + + + + + + +
AttributeDescriptionDefault
ignoreCaseEnables case insensitive operation when matching a request to a + security constraint.false on Unix based systems
+ true on Windows based systems
+ +

Example(s)

+ +
+<AccessInterceptor />
+
+ +
+ + + +

AccessLogInterceptor

+ +

Type: Loggers

+ +

Description

+ +

Creates log files in the style of the Apache servers "AccessLog".

+ +

Attributes

+ + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
logFileName of the log file.logs/AccessLog
formatA string describing the logfile format. Possible values are + "combined" (Apache httpd combined format, default), + "common" (Apache httpd common format) or a format string like +
+        '%h %l %u %t "%r" %>s %b "%{Referer}" "%{User-Agent}"'
+        '%h %l %u %t "%r" %>s %b'
+      
+ (The above examples are used when "combined" or "common" + format is requested.) Possible patterns are: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + +
%%The percent character itself
%{var}The value of request.getHeader("var") or + empty string for null.
%bThe value of response.getContentLength().
%hThe value of request.getRemoteHost().
%lShould be the remote users name, as indicated by an + identd lookup. Currently it is always "-".
%rFirst line of the request submitted by the client, for + example +
+              GET /index.html?frame=main HTTP/1.0
+            
+ The first line is rebuilt from the values of + request.getMethod(), + request.getRequestURI(), + request.getQueryString() and + request.getProtocol(). It should probably + better be recorded while reading the headers. +
%sThe value of response.getStatus().
%>sThe value of response.getStatus(). + Should differ between different internal requests, as + Apache httpd does, but this is currently not supported.
%tThe current time and date in the format +
+              [20/Apr/2001:19:45:23 0200]
+            
+
%uThe value of request.getRemoteUser() or + "-" for null.
"combined" format
+ +

Example(s)

+ +
+<AccessLogInterceptor format="common" />
+
+ +
+ + + +

Ajp12Connector

+ +

Type: Server

+ +

Description

+ +

Handles incoming Ajp12 requests. Ajp12 is a protocol used by the mod_jk +based web server connectors and the mod_jserv connector. Also, used for +shutting down Tomcat.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
ajpidFileFile in which to record Ajp12 connector info and password. In + Tomcat 3.3.1 this setting can be overridden by a ContextManager property + named "ajpid12". Such a property would normally be set using + command line arguments.conf/ajp12.id
secretThe desired shutdown password.not specified
tomcatAuthenticationEnables Tomcat's authentication, ignoring any authentication from the + web server sending the requests.true
useSecretEnables use of a random number as the shutdown password.false
Socket Properties  
addressAddress to which the server socket binds.null, bind on all addresses
backlogMaximum length of the backlog queue for the server socket.100
portPort on which to receive requests.no default, must be specified
Thread Pool Properties  
maxThreadsMaximum number of threads in Thread pool.200
maxSpareThreadsMaximun number of spare threads. Unused threads will be terminated as + needed to keep the number of spare threads under this number.50
minSpareThreadsMinimum number of spare threads. Additional threads will be created + as needed to keep the number of spare threads up to this number.4
poolsEnables use of a Thread pool.true
+ +

Example(s)

+ +
+<Ajp12Connector port="8007" ajpidFile="conf/ajp12_2.id" />
+
+ +

Additional note:

+ +

If using Ajp12Connector to shutdown Tomcat, the minimum of 2 +threads have to be configured, or the shutdown will not be successful. Default +configuration (no maxThreads) configures more then 2 threads and +should work fine.

+ +

You need two threads since one is always supposed to be listening, and the +other does the actual shutting down. Since the shutdown thread tries to +unblock the listening thread, it hangs if there isn't anyone listening.

+ +
+ + + +

Ajp13Connector

+ +

Type: Server

+ +

Description

+ +

Handles incoming Ajp13 requests. Ajp13 is a protocol used by the mod_jk +based web server connectors.

+ +

In Tomcat 3.3.1, some attributes were added for supporting password protected +shutdown using Ajp13. This feature is actived by setting the +shutdownEnable to true, or setting a password using +the secret or useSecret attributes. Also, if a +password is set, authentication of Ajp13 connections can also be performed. +This feature requires the authenticateRequests attribute be set +true in addition to a password, and the mod_jk based +connector support this feature. The connectors available with Tomcat 3.3.x do +not support this feature. Connectors that do support this feature will be made +available through the jakarta-tomcat-connectors project.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
ajpidFile
[Tomcat 3.3.1]
File in which to record Ajp13 connector info and password. This + setting can be overridden by a ContextManager property named + "ajpid13". Such a property would normally be set using a + command line argument.conf/ajp13.id
authenticateConnection
[Tomcat 3.3.1]
If true and a password has been set, password checking is performed on + the first Ajp13 request of a newly opened connection. If the password + doesn't match, the request is ignored and the connection closed. If + they match, the connection is "authenticated" and the current + and future requests on that connection are processed normally. If false + or a password isn't set, password checking of the Ajp13 connection is + disabled. The password is set using either the secret or + useSecret attributes. This feature also requires a mod_jk + based connector that supports sending the password. The connectors + available with Tomcat 3.3.x do not support this feature.false
secret
[Tomcat 3.3.1]
The desired shutdown password. If set, the shutDownEnable + attribute is automatically set true. The password can + also be used for authentication of Ajp13 connections if supported by the + mod_jk based connector. The connectors supplied with Tomcat 3.3.x do + not support this feature.not specified
shutDownEnable
+
+ shutdownEnable
[Tomcat 3.3.1]
Enable shutdown signal via this connector. This attribute is + automatically set true if a password is set using the + secret or useSecret attributes.false
tomcatAuthenticationEnables Tomcat's authentication, ignoring any authentication from the + web server sending the requests. This means that the user returned by + HttpServletRequest.getRemoteUser() will be the user authenticated locally + within Tomcat. If you are using Tomcat with a web server, such as Apache, + and you want to use the user authenticated by the web server, set this + attribute false.true
useSecret
[Tomcat 3.3.1]
Enables use of a random number as the shutdown password. If set, the + shutDownEnable attribute is automatically set + true. The password can also be used for authentication of + Ajp13 requests if supported by the mod_jk based connector. The + connectors supplied with Tomcat 3.3.x do not support this feature.false
Socket Properties  
addressAddress to which the server socket binds.null, bind on all addresses
backlogMaximum length of the backlog queue for the server socket.100
portPort on which to receive requests.no default, must be specified
Thread Pool Properties  
maxThreadsMaximum number of threads in Thread pool.200
maxSpareThreadsMaximun number of spare threads. Unused threads will be terminated as + needed to keep the number of spare threads under this number.50
minSpareThreadsMinimum number of spare threads. Additional threads will be created + as needed to keep the number of spare threads up to this number.4
poolsEnables use of a Thread pool.true
+ +

Example(s)

+ +
+<Ajp13Connector port="8009" tomcatAuthentication="false" />
+
+ +
+ + + +

ApacheConfig

+ +

Type: Configuration

+ +

Description

+ +

Generate configuration file for mod_jk to be included in Apache's httpd.conf.

+ +

For additional information on connecting Tomcat to Apache via mod_jk, see the +Working with mod_jk document.

+ +

Important Note: The configuration files are not written as part of a +normal startup of Tomcat. To generate the configuration files on demand, +append:

+
    jkconf
+

or

+
    -jkconf
+

to the startup command. Tomcat will initialize sufficiently to write the +configuration files and then exit. This may be done while Tomcat 3.3 is running. +To generate the configuration files during normal startup, add:

+
    jkconf="true"
+

to the <ContextManager ... > element in the +server.xml file.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
configHomeDefault parent directory for the following paths. Ignored whenever any + of the following paths is absolute.TOMCAT_HOME
jkConfigPath to use for writing Apache mod_jk configuration file.conf/auto/mod_jk.conf
workersConfigPath to workers.properties file used by mod_jk.conf/jk/workers.properties
modJkPath to Apache mod_jk plugin file.Windows: modules/mod_jk.dll
+ Netware: modules/mod_jk.nlm
+ Unix and all others: libexec/mod_jk.so
jkLogPath to log file to be used by mod_jk.logs/mod_jk.log
jkDebugJK Loglevel setting. May be debug, info, error, or emerg.emerg
jkWorkerThe desired worker. Must be set to one of the workers defined in the + workers.properties file. "ajp12", "ajp13" or + "inprocess" are the workers found in the default + workers.properties file.Defaults to "ajp13" if an Ajp13Connector is in use, + otherwise it defaults to "ajp12".
forwardAllIf true, forward all requests to Tomcat. This helps ensure that all the + behavior configured in the web.xml file functions correctly. If false, + let Apache serve static resources. Warning: When false, some configuration + in the web.xml may not be duplicated in Apache. Review the mod_jk + configuration file to see the actual configuration being set in Apache.true
noRootIf true, the root context is not mapped to Tomcat. If false and + forwardAll is true, all requests to the root context are mapped to Tomcat. + If false and forwardAll is false, only JSP and servlets requests to the + root context are mapped to Tomcat. When false, to correctly serve + Tomcat's root context in the default host you must also modify the + DocumentRoot setting in Apache's httpd.conf file to point to Tomcat's root + context directory. Otherwise some content, such as Apache's index.html, + will be served by Apache before mod_jk gets a chance to claim the request + and pass it to Tomcat. If a root context is assigned to a virtual host, + then the DocumentRoot is automatically included in the configuration for + that virtual host.true
+ +

Example(s)

+ +
+<ApacheConfig forwardAll="true" noRoot="false" />
+
+ +
+ + + +

AutoDeploy

+ +

Type: Configuration

+ +

Description

+ +

Automatically expands WAR files on startup.

+ +

Note: If the redeploy attribute is true and +a ReloadInterceptor is present, then WAR +files will re-deploy automatically while Tomcat 3.3 is running.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
sourceDirectory where ".war" files are located.${tomcat.home}/webapps
targetDirectory where .war files will be expanded${tomcat.home}/webapps
redeployCheck if the .war file is changed and re-deploy. This works in the + same way as reloading.false
+ +

Example(s)

+ +
+<AutoDeploy source="webapps" target="webapps" />
+
+ +
+ + + +

AutoWebApp

+ +

Type: Configuration

+ +

Description

+ +

Automatically adds web application contexts from a directory.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
dir + Directory from which to load the web applictions. Relative paths + are interpreted as relative to TOMCAT_HOME.webapps
flatEach dir will be treated as a webapp in the same host. If false, + each dir will be treated as a host name and its subdirs as + web applications. You can add apps to multiple virtual hosts. true
hostVirtual host into which each application will be deployed.
+ Note: If this attribute is specified in server.xml, + the handling for hostChar and hostDotChar is + disabled.
DEFAULT
hostChar
[Tomcat 3.3.1]
Character used to designate the end of the host portion of the + directory name. For example, a directory named "mydomain@myapp" + would deploy to virtual host "mydomain" as the "/myapp" + context. Deriving a host name from the directory name is disabled if + the host attribute is specified in server.xml. + Also see the hostDotChar attribute for including periods in + the host name.
+ Note: This attribute was implemented, but not configurable in + Tomcat 3.3. However, a bug in Tomcat 3.3 makes this feature unusable. The + '@' character is incorrectly included in the context name. This bug has + been corrected in Tomcat 3.3.1.
@
hostDotChar
[Tomcat 3.3.1]
Character used as a substitute for periods in the host portion of the + directory name. For example, a directory named + "www_mydomain_com@myapp" would deploy to virtual host + "www.mydomain.com" as the "/myapp" context. Also see + the hostChar attribute for designating the end of the host + name.
+ Note: This attribute was implemented, but not configurable in + Tomcat 3.3. However, a bug in the handing for hostChar in + Tomcat 3.3 makes this feature unusable. It is fully funtional in + Tomcat 3.3.1.
_
ignoreDotIgnore dirs starting with '.'true
pathSlashChar
[Tomcat 3.3.1]
Character used as a substitute for slashes in the context path portion + of the directory name. For example, a directory named + "my_app" would deploy to the default host as the + "/my/app" context.
+ Note: This attribute was implemented, but not configurable in + Tomcat 3.3.
_
prefix
[Tomcat 3.3.1]
Prefix to add to the context path for each deployed web application. + The context path will consist of the prefix followed subdirectory name.empty string
reloadableIf true, reloading will be enabled by default for each context. If + false, reloading will be disabled by default for each context. This + setting, enabled or disabled, may be overridden in an explicit + context declaration.true
+ +

Note: The special directory name handling controlled by +hostChar, hostDotChar, and pathSlashChar +is always enabled. If you wish to include '_' characters in a web application +directory name, disable the feature by redefining the pathSlashChar +to an empty string.

+ +

Example(s)

+ +
+  <AutoWebApp dir="webapps" host="DEFAULT" />
+  <AutoWebApp dir="myhost" host="myhost.com" />
+  <AutoWebApp dir="webapps" pathSlashChar="" />
+
+ +
+ + + +

ContextXmlReader

+ +

Type:Configuration

+ +

Description

+ +

Reads the XML files that define contexts to +be served by Tomcat. You specify a single file to read. However, in addition +to that file, all other files in the same directory will be read that match the +pattern "base-*.xml", where base is the base name (i.e. +name without extension) of the file you specified. Each file may configure one or more +contexts. Where the context matches a context automatically created by the +AutoWebApp module, the configuration file will override +the default context settings.

+ +

For details on the syntax of the context configuration file, refer to the +Adding and Customizing Contexts +section of the Tomcat 3.3 Users Guide.

+ +

Note: In Tomcat 3.3.1, ant-style variable substitution is supported +in the XML files. Details are included in the "Adding and Customizing Contexts" +section mentioned above.

+ +

Attributes

+ + + + + + + + + + + + +
AttributeDescriptionDefault
configContext configuration file to read. It may configure one or more + contexts.conf/server.xml
+ +

Example(s)

+ +
+  <ContextXmlReader config="conf/myapps.xml" />
+
+ +
+ + + +

CredentialsInterceptor

+ +

Type: Access, Authentication, and Authorization

+ +

Description

+ +

Extracts the user name and password from a request and makes the information +available for another module to perform the authentication. It currently +supports extracting user name and passwords from BASIC and FORM based +authetication.

+ +

This module must appear prior to the "realm" module that performs +the authentication.

+ +

Attributes

+ +

This module has no user settable attributes.

+ +

Example(s)

+ +
+<CredentialsInterceptor />
+
+ +
+ + + +

DecodeInterceptor

+ +

Type: Mappers

+ +

Description

+ +

Handles the task of establishing the encoding of a request. It also handles +optionally normalizing the request and optionally checking the request for +unsafe escape sequences.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
defaultEncodingServer wide default encoding to use. When set, all requests will + default to this encoding if the encoding can't be determined or an + appropriate guess isn't available. If null, a request's + internal default of ISO-8859-1 remains in effect.null, which indirectly defaults to ISO-8859-1
useSessionEncodingEnables use of the encoding of the response as default for the next + request. This parameter if true can affect the value returned + by ServletRequest.getCharacterEncoding(). If the encoding hasn't been + previously specified, a request attribute corresponding to + charsetAttribute has not been found, and a session is available, then + getCharacterEncoding() will return the character encoding of the last + response sent for this session.true
charsetAttributeThe name of the URL attribute to use for two alternate ways of specifying + character encoding. First, you may specify the encoding by including + ";charsetAttribute=encoding in the URL. For example, + "http://localhost:8080/myapp/index.jsp;charset=UTF-8" would + specify the encoding as UTF-8. The special attribute is + removed from the URI, so it is not visible to normal request handling. + Second, if the encoding has not been previously specified, then + handing for ServletRequest.getCharacterEncoding() will check for a + request attribute with the charsetAttribute name and return that encoding + if found.charset
normalizeNormalize the request URI to remove occurrences of "//", + "/./", and "/x/../". Also remove ending + "/." and "/x/.."true
safeEnables checking for unsafe encodings. These are %25 ('%'), %2E ('.'), + %2F ('/'), and %5C ('\'). If any are found in the URI, the request is + considered "unsafe" and a 403 Forbidden error is returned.true
saveOriginalIf true, a copy of the original request URI is saved + before it is decoded. This saved copy is later used as the return value + HttpServletRequest.getRequestURI(). If false, then + HttpServletRequest.getRequestURI() returns a re-encoded version of the + decoded request URI. Setting this attribute to true most + closely follows the Servlet 2.2 spec. However, false is + the default because true can't be implemented when + Tomcat is connected to Netscape Web Server 4.1 or earlier. The original + un-escaped request URI isn't made available to the connector. Also, + the IIS connector that shipped with Tomcat 3.3(a) did not support + passing the original request URI, though the current one does, using + the uri_select setting.false
+ +

Example(s)

+ +
+<DecodeInterceptor useSessionEncoding="true" >
+
+ +
+ + + +

ErrorHandler

+ +

Type: Generator

+ +

Description

+ +

Handles response generation when a request encounters an error. Calls the +appropriate error handler if specified, or generates the default +error response if not specified.

+ +

Attributes

+ + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
defaultRedirectStatusSets the default status code for use by the RedirectHandler if as + status code has not already been set. It may be set to "301" + or "302". This primarily affects the status code used + when the StaticInterceptor module + redirects a "directory" URL that doesn't end with a '/' and + redirects to welcome files.301
showDebugInfoEnables the inclusion of extra information in the default error output, + such as stack traces. This extra information can expose data about + the internal operation of Tomcat. It should be disabled in production + environments.true
+ +

Example(s)

+ +
+<ErrorHandler showDebugInfo="false" />
+
+ +
+ +

CoyoteConnector

+ +

Type: Server

+ +

Description

+ +

Handles incoming AJP13 and HTTP, or optionally HTTPS, requests. [Tomcat 3.3.2]

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
socketCloseDelaySpecifies the number of milliseconds to delay before closing the socket + after processing a request. If negative, the delay is disabled. Setting + a value greater or equal to zero is intended to help with diagnosing + client errors resulting from unread data in the body of the HTTP request. + If this unread data arrives just before or during the closing of the + socket, the client may see a "Connection aborted by peer" error.-1
processorClassNameThe Coyote processor class to use. The values are + org.apache.coyote.http11.Http11Processor for the HTTP/1.1 + connector, and org.apache.jk.server.JkCoyoteHandler for + the AJP13 connector.org.apache.coyote.http11.Http11Processor
HTTP/1.1 Connection Properties  
disableUploadTimeoutIf true then use the same timeout for uploads and for + keep-alives.true
maxKeepAliveRequestsThe maxiumum number of keep-alive requests to allow on the same + socket connection.100
secureEnables use of a SSL socket factory and act as an HTTPS server.false
keystoreFileKeystore containing the Server certificatePureTLS: server.pem
+ JSSE: .keystore in directory specified by the user.home System property
keypassPassword to the keystore.changeit
clientauthEnables requirement for client authentication.false
Socket Properties  
addressAddress to which the server socket binds.null, bind on all addresses
backlogMaximum length of the backlog queue for the server socket.100
portPort on which to receive requests.no default, must be specified
SSLImplementationClass which implements the + org.apache.tomcat.util.net.SSLImplementation interface. + This setting controls which SSL support is used by secure connections. + Currently supported are:
+
    +
  1. PureTLS - specify + org.apache.tomcat.util.net.PureTLSImplementation
  2. +
  3. JSSE - specify + org.apache.tomcat.util.net.JSSEImplementation
  4. +
not set
+ default behavior will detect PureTLS and JSSE and choose the one + available, or PureTLS if both are available.
timeoutSocket read timeout in seconds.300
Thread Pool Properties  
maxThreadsMaximum number of threads in Thread pool.200
maxSpareThreadsMaximun number of spare threads. Unused threads will be terminated as + needed to keep the number of spare threads under this number.50
minSpareThreadsMinimum number of spare threads. Additional threads will be created + as needed to keep the number of spare threads up to this number.4
+ +

Note: You may specify attributes that do +not appear in the list above. These attribute settings will be saved in a list +and made available to the secure socket factory when secure is set +true. Supported attributes are:

+ +

PureTLS

+ + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
rootfileFile containing root certificates.root.pem
randomfileFile to initialize random number generation.random.pem
+ +

JSSE

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
algorithmAlgorithm used to encode the certificate.SunX509
keystoreTypeType of keystore.JKS
keystorePassPassword to Keystore file.defaults to keypass setting
protocolProtocol for the SSL.TLS
+ +

Example(s)

+ +
+<CoyoteConnector port="8080" timeout="60" />
+
+ +
+ + + +

Http10Connector

+ +

Type: Server

+ +

Description

+ +

Handles incoming HTTP, or optionally HTTPS, requests.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
reportednameSpecifies the string to use for the "Server" headernull, use default Tomcat server string
socketCloseDelay
[Tomcat 3.3.1]
Specifies the number of milliseconds to delay before closing the socket + after processing a request. If negative, the delay is disabled. Setting + a value greater or equal to zero is intended to help with diagnosing + client errors resulting from unread data in the body of the HTTP request. + If this unread data arrives just before or during the closing of the + socket, the client may see a "Connection aborted by peer" error.-1
Connection Properties  
secureEnables use of a SSL socket factory and act as an HTTPS server.false
keystoreKeystore containing the Server certificatePureTLS: server.pem
+ JSSE: .keystore in directory specified by the user.home System property
keypassPassword to the keystore.changeit
clientauthEnables requirement for client authentication.false
Socket Properties  
addressAddress to which the server socket binds.null, bind on all addresses
backlogMaximum length of the backlog queue for the server socket.100
portPort on which to receive requests.no default, must be specified
SSLImplementation
[Tomcat 3.3.1]
Class which implements the + org.apache.tomcat.util.net.SSLImplementation interface. + This setting controls which SSL support is used by secure connections. + Currently supported are:
+
    +
  1. PureTLS - specify + org.apache.tomcat.util.net.PureTLSImplementation
  2. +
  3. JSSE - specify + org.apache.tomcat.util.net.JSSEImplementation
  4. +
not set
+ default behavior will detect PureTLS and JSSE and choose the one + available, or PureTLS if both are available.
timeoutSocket read timeout in seconds.300
Thread Pool Properties  
maxThreadsMaximum number of threads in Thread pool.200
maxSpareThreadsMaximun number of spare threads. Unused threads will be terminated as + needed to keep the number of spare threads under this number.50
minSpareThreadsMinimum number of spare threads. Additional threads will be created + as needed to keep the number of spare threads up to this number.4
poolsEnables use of a Thread pool.true
+ +

Note: In Tomcat 3.3.1 and later, you may specify attributes that do +not appear in the list above. These attribute settings will be saved in a list +and made available to the secure socket factory when secure is set +true. Supported attributes are:

+ +

PureTLS

+ + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
rootfileFile containing root certificates.root.pem
randomfileFile to initialize random number generation.random.pem
+ +

JSSE

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
algorithmAlgorithm used to encode the certificate.SunX509
keystoreTypeType of keystore.JKS
keystorePassPassword to Keystore file.defaults to keypass setting
protocolProtocol for the SSL.TLS
+ +

Example(s)

+ +
+<Http10Interceptor port="8080" timeout="60" />
+
+ +
+ + + +

IISConfig

+ +

Type: Configuration

+ +

Description

+ +

Generate configuration files for isapi_redirect.dll to be used for connecting +IIS to Tomcat. In Tomcat 3.3, two files will be generated, iis_redirect.reg and +uriworkermap.properties. Both files will be written to +conf/auto relative to TOMCAT_HOME. The iis_redirect.reg +contains the needed registry entries for the iis_redirect.dll. +You may enter the settings into the registry by double-clicking on this file in +Windows Explorer. The uriworkermap.properties file will be read +by the isapi_redirect.dll to get the mappings that determine +which requests should be passed to Tomcat.

+ +

In Tomcat 3.3.1, an additional file is written. The default is to write +an isapi_redirect.properties file to the same directory as the +iis_redirect.reg file. It contains the same configuration +information as the iis_redirect.reg, and offers an alternative +method of configuring the redirector instead of relying on the registry. +See the document mentioned in the next paragraph for details on its use.

+ +

For additional information on connecting Tomcat to IIS, see the +Tomcat IIS HowTo document.

+ +

Important Note: The configuration files are not written as part of a +normal startup of Tomcat. To generate the configuration files on demand, +append:

+
    jkconf
+

or

+
    -jkconf
+

to the startup command. Tomcat will initialize, write the configuration files, +and then shutdown. This may be done while Tomcat 3.3 is running. To generate +the configuration files during normal startup, add:

+
    jkconf="true"
+

to the <ContextManager ... > element in the +server.xml file.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
configHomeDefault parent directory for the following paths. Ignored whenever any + of the following paths is absolute.TOMCAT_HOME
regConfigPath to use for writing the registry settings configuration file.conf/auto/iis_redirect.reg
uriConfigPath to use for writing the URI worker map configuration file.conf/auto/uriworkermap.properties
workersConfigPath to workers configuration file.conf/jk/workers.properties
isapiRedirector  
[Tomcat 3.3.1]
Name of the ISAPI connector DLL. This setting controls the name of + the redirector DLL used in the configuration settings. This setting + appears in the registry settings configuration file specified by the + regConfig attribute. It is also written to a file with the + same name as the DLL, but with a ".properties" extension. + The "properties" file will be written to the same directory + as the registry settings configuration file.
+
+ Note: This "properties" file may be placed in the same + directory as the Tomcat redirector plugin DLL being used by IIS. + Provided its base name is the same as the DLL (e.g. isapi_redirect.dll and + isapi_redirect.properties) the configuration settings in the file will + be used instead of settings found in the registry.
isapi_redirect.dll
jkLogPath to log file to be used by isapi_redirect.dll.logs/iis_redirect.log
jkDebugJK Loglevel setting. May be debug, info, error, or emerg.emerg
jkWorkerThe desired worker. Must be set to one of the workers defined in the + workers.properties file. "ajp12", "ajp13" or + "inprocess" are the workers found in the default + workers.properties file.Defaults to "ajp13" if an Ajp13Connector is in use, otherwise it + defaults to "ajp12".
forwardAllIf true, forward all requests to Tomcat. This helps ensure that all the + behavior configured in the web.xml file functions correctly. If false, + let IIS serve static resources. Warning: When false, some configuration + in the web.xml may not be duplicated in IIS. Review the configuration + files to see the actual configuration being set in IIS.true
noRootIf true, the root context is not mapped to Tomcat. If false and + forwardAll is true, all requests to the root context are mapped to Tomcat. + If false and forwardAll is false, only JSP and servlets requests to the + root context are mapped to Tomcat. true
+ +

Example(s)

+ +
+<IISConfig forwardAll="true" noRoot="false" />
+
+ +
+ + + +

InvokerInterceptor

+ +

Type: Generator

+ +

Description

+ +

Provides support for the "/servlet/class name" legacy +method of invoking servlets.

+ +

Attributes

+ +

This module has no user settable attributes.

+ +

Example(s)

+ +
+<InvokerInterceptor />
+
+ +
+ + + +

JDBCRealm

+ +

Type: Access, Authentication, and Authorization

+ +

Description

+ +

Authenticates the user if required for a request. The authentication +occurs using data from "user" and "user roles" tables +accessed using a JDBC connection.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
driverNameJDBC driver to use.must be specified
connectionURLURL to use to connect to the database.must be specified
connectionNameUser name to use to connect to the database. The connectionPassword + must also be specified before the user name and password will be used.not used
connectionPasswordPassword to use to connect to the database. The connectionName must + also be specified before the user name and password will be used.not used
userTableTable that holds the user data.must be specified
userNameColColumn in the user table that holds the user's name.must be specified
userCredColColumn in the user table that holds the user's credentials.must be specified
userRoleTableTable that holds the relation of users to their rolesmust be specified
roleNameColColumn in the user role table that names a role.must be specified
connectOnInitEnables establishing JDBC connection when Tomcat starts. Otherwise, + establish JDBC connection on first use.false
+ +

Example(s)

+ +
+<JDBCRealm driverName="sun.jdbc.odbc.JdbcOdbcDriver" 
+              connectionURL="jdbc:odbc:TOMCAT" 
+              userTable="users"
+              userNameCol="user_name" 
+              userCredCol="user_pass" 
+              userRoleTable="user_roles" 
+              roleNameCol="role_name" />
+
+ +
+ + + +

Jdk12Interceptor

+ +

Type: Generator

+ +

Description

+ +

Ensures that the proper context classloader is in effect during servlet +execution.

+ +

Attributes

+ +

This module has no user settable attributes.

+ +

Example(s)

+ +
+<Jdk12Interceptor />
+
+ +
+ + + +

JniConnector

+ +

Type: Server

+ +

Description

+ +

Handles requests processed by Tomcat running in-process. It has no +effect if Tomcat was not started in-process by the Tomcat connector.

+ +

Attributes

+ + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
exitIfNoLibCauses Tomcat to exit if the native libary is not successfully loaded.true
nativeLibraryName of the native library to load. If the name specified is not + absolute, it tries loading the library using the name as is. If that + fails, it will try loading it from TOMCAT_HOME/bin/native.Windows: jni_connect.dll
+ Netware: jni_connect.nlm
+ Unix and all others: jni_connect.so
+ +

Example(s)

+ +
+<JniConnector nativeLibrary="bin/jni_connect.so" />
+
+ +
+ + + +

JservConfig

+ +

Type: Configuration

+ +

Description

+ +

Generate configuration file for mod_jserv to be included in Apache's httpd.conf.

+ +

For additional information on connecting Tomcat to Apache via mod_jserv, see the +Tomcat Apache HowTo document.

+ +

Important Note: The most stable and robust connector for connecting +Tomcat 3.3 to Apache is mod_jk. Its use is recommended over mod_jserv. +Also, unlike the ApacheConfig, +IISConfig, and +NSConfig modules, JservConfig +does not participate in the "jkcont" startup option. Instead, the +configuration file is written each time Tomcat is started.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
configHomeDefault parent directory for the following paths. Ignored whenever any + of the following paths is absolute.TOMCAT_HOME
jservConfigPath to use for writing Apache tomcat-apache.conf configuration file.conf/auto/tomcat-apache.conf
modJservPath to Apache mod_jserv plugin file.Windows: modules/ApacheModuleJserv.dll
+ Unix and all others: libexec/mod_jserv.so
jservLogPath to log file to be used by mod_jserv.logs/mod_jserv.log
jservDebugJServ Loglevel setting. May be debug, info, notice, warn, error, crit, + alert, or emerg.emerg
forwardAllIf true, forward all requests to Tomcat. This helps ensure that all the + behavior configured in the web.xml file functions correctly. If false, + let Apache serve static resources. Warning: When false, some configuration + in the web.xml may not be duplicated in Apache. Review the tomcat-apache.conf + configuration file to see the actual configuration being set in Apache.true
noRootIf true, the root context is not mapped to Tomcat. If false and + forwardAll is true, all requests to the root context are mapped to Tomcat. + If false and forwardAll is false, only JSP and servlets requests to the + root context are mapped to Tomcat. If a root context is assigned to a virtual host, + then the DocumentRoot is automatically included in the configuration for + that virtual host.true
+ +

Example(s)

+ +
+<JservConfig forwardAll="true" noRoot="false" />
+
+ +
+ + + +

JspInterceptor

+ +

Type: Servlet 2.2 Facade

+ +

Description

+ +

Handles turning a JSP page into a loaded servlet for execution. Execution +for the loaded servlet is handled the same as any other servlet. It uses Jasper +for translating the JSP to a Java file, then performs compilation to a class +file directly rather than using Jasper for the class compilation.

+ +

There is support for using Sun's javac Java compiler as well +as IBM's Jikes Java compiler.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
 JSP Translation Options 
keepGeneratedKeep the translated Java file. If false, the Java file + is deleted after being compiled to a class file.true
largeFileWrites the HTML text from a JSP to a separate file with a ".dat" + extension. This text is read when the JSP servlet initializes. The makes + the class file smaller. If false, "out.print()" + statements are generated with the HTML text is embedded as a literal.false
mappedFileGenerate "out.print()" for each HTML text line in the JSP + file. If false, the HTML text from multiple lines are + concatenated and output in one "out.print()". This option is + ignored if largeFile is true.false
IEClassIdThe Microsoft Internet Explorer "classid" to be used by + the jsp:plugin tag.clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
scratchdirDestination directory for the JSP's Java file.context's work directory
 Options for JSP Java Compilation 
classDebugInfoEnables compiling the class file with debugging information.false
javaCompilerJasper class for invoking the Java compiler. For using Sun's + javac Java compiler in process, specify + org.apache.jasper.compiler.SunJavaCompiler. To use IBM's + Jikes Java compiler out of process, specify + org.apache.jasper.compiler.JikesJavaCompiler or + just jikes which is a supported shortcut.org.apache.jasper.compiler.SunJavaCompiler
useWebAppCLIf true, Java compilation with "sun.tools.javac.Main" will + be performed using the web application classloader instead of using + the "container" classloader. This was added as a workaround + for problems encountered on some HP-UX systems.false
 Options for Jikes Complier 
jspCompilerPathPath to Java compiler executable. Used only with Jikes as the Java + compiler. If not specified, the Jikes executable must be in the PATH + environment variable.empty
jikesClasspathExtra classpath entries to pass to the Jikes compiler. This would + typically include extension jars found in the jre/lib/ext + directory of a Java 2 SDK. By default, the jre/lib/rt.jar + file is automatically included so it does not need to be present + in this setting. Classes from WEB-INF/classes and + jars from WEB-INF/lib are also automatically included.empty
 Options for JSP Runtime 
pageContextPoolSizeSets pool size of JSP PageContexts. If zero, disables pooling.100
Options for Jasper JSP servlet - The attributes other than + useJspServlet are ignored if useJspServlet + is false.
useJspServletEnables use of Jaspers JspServlet for translating, compiling, and + loading JSP pages. Provided for backward compatibility with earlier + Tomcat implementations.false
jspServletThe JSP servlet class.org.apache.jasper.servlet.JspServlet
classPathClasspath passed to the Java compiler when compiling to a class file.empty
+ +

Example(s)

+ +
+<JspInterceptor keepGenerated="false" />
+<JspInterceptor javaCompiler="jikes" />
+
+ +
+ + + +

LoaderInterceptor11

+ +

Type: Configuration

+ +

Description

+ +

This module constructs and sets the classloader for each context. It +supports the Servlet 2.2 spec by including WEB-INF/classes +and the Jars in WEB-INF/lib in the classloader. The +available attributes allow control over the context classloader's parent. +With the default attributes, "trusted" contexts get the +Server Classloader as their +parent and "untrusted" contexts get the +Apps Classloader as their +parent.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
additionalJars
[Tomcat 3.3.1]
List of jars to be added to each web application separated by the + specified jarSeparator. If not an absolute path, the path + is assumed to be relative to TOMCAT_HOME/lib/container.none
jarSeparator
[Tomcat 3.3.1]
String containing the character to be used as a jar separator. This + separator is used by the additionalJars and + jaxpJars lists.:
jaxpEnables providing a default XML parser to web applications that don't + already have one. If the javax.xml.parsers.SAXParserFactory + class is found in a web application, it is assumed to already contain + an XML parser and no action is taken for that web application.true
jaxpDirDirectory where Jaxp jars are located.lib/container
jaxpJarsList of jars to be added. The list is separated by colons in Tomcat 3.3, + or by jarSeparator in Tomcat 3.3.1 and later.jaxp.jar:crimson.jar:xalan.jar:xerces.jar
useNoParentIf true, sets the context classloader's parent to + null. If false, then contexts which are + "trusted" will get the + Server Classloader as the parent. The parent classloader for contexts + which are not "trusted" are controlled by the + useApplicationLoader attribute.false
useApplicationLoaderIf true, when useNoParent is false, + sets the context classloader's parent to the + Apps Classloader. If + false, when useNoParent is false, + sets the context classloader's parent to the + Server Classloader.true
use11Loader
[Tomcat 3.3.1]
If true, use the SimpleClassLoader (normally used in + JDK 1.1.8 environments) even under Java2. Otherwise the default + URLClassLoader is used when running with Java2.
+ The primary reason for this attribute is as a workaround for known + jar reloading problems in the URLClassLoader of some JVM's. If you + have problems with reloading web applications after updating jars, + try setting this attribute true. This provides compatiblity with + Tomcat 3.2.x. with respect to jar reloading.
false
+ +

Example(s)

+ +
+<LoaderInterceptor11 jaxp="true" />
+<LoaderInterceptor11 jaxp="true" use11Loader="true"/>
+
+ +

Additional Note

+ +

For Tomcat 3.3.1 and later, LoaderInterceptor11 also supports an +additionalJars Context property that works the same as the module's +additionalJars attribute for that context only. If +additionalJars is specified as a Context property and as +a LoaderInterceptor11 attribute, both lists are added. For information +on setting Context properties, see +Adding and Customizing Contexts +in the Tomcat 3.3 User's Guide.

+ +
+ + + +

LoadOnStartupInterceptor

+ +

Type: Servlet 2.2 Facade

+ +

Description

+ +

Handles pre-loading of servlets specified as <load-on-startup> in a +Context's web.xml file.

+ +

Attributes

+ +

This module has no user settable attributes.

+ +

Example(s)

+ +
+<LoadOnStartupInterceptor />
+
+ +
+ + + +

LogEvents

+ +

Type: Configuration

+ +

Description

+ +

This module enables logging of when module methods are called. The log +output goes to the ContextManager's log channel. Event logging is +automatically enabled if the ContextManager's debug level is set greater +than 5.

+ +

Attributes

+ + + + + + + + + + + + +
AttributeDescriptionDefault
enabledIf true, enables logging of when module methods are called.false
+ +

Example(s)

+ +
+<LogEvents enabled="true" />
+
+ +
+ + + +

LogSetter

+ +

Type: Configuration

+ +

Description

+ +

Configures a log channel.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
nameName of the log channel.null
pathPath to the desired log file. You may embed a + java.text.SimpleDateFormat string enclosed within "${}" + to create a path that encorporates the current date and/or time.null, log output goes to stderr
verbosityLevelVerbosity level for the log. Accepted values are: FATAL, + ERROR, WARNING, INFORMATION, + and DEBUG.INFORMATION
timestampsIf true, a timestamp is included at the beginning of + each line in the log output.true
timestampFormatFormat for timestamp, if enabled.yyyy-MM-dd HH:mm:ss
+ +

Example(s)

+ +
+<LogSetter name="tc_log" verbosityLevel="DEBUG" />
+<LogSetter name="servlet_log" timestamps="true"
+    verbosityLevel="INFORMATION" path="logs/servlet-${yyyyMMdd}.log" />
+
+ +
+ + + +

MxInterceptor

+ +

Type: Configuration

+ +

Description

+ +

JMX MBeans support has been added to Tomcat 3.3.2, which allow you to manage +Tomcat from any JMX console (JRMP) or via a simple browser by the build in HTTP Adaptor

+

To enable JMX, you should add the optional JmxSupport module to the +$TOMCAT_HOME/modules directory.

+

To also activate the HTTP/JRMP Adaptor you should at least define the port

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
typeindicate what kind of adapter you want to use, HTTP or JRMP.HTTP
portport where the JMX HTTP/JRMP adaptor will listen to, no adaptor will be loaded if not setno adaptor
hosthost/ip where the JMX HTTP/JRMP Adaptor will listen to, only available when using MX4J implementationnull
authenticationauthentication used by the JMX HTTP Adaptor, only available when using MX4J HTTP Adaptor, + it could be none, basic, digestnone
userthe user account which to be used with authenticationnone, should be set to enable authentication
passwordthe password which to be used with authenticationnone, should be set to enable authentication
+ + + +

Example(s)

+ +
+<MxInterceptor type="HTTP" port="8999" host="mysystem" authentication="basic" user="admin" password="changeillico" />
+
+ +
+ + + +

NSConfig

+ +

Type: Configuration

+ +

Description

+ +

Generate configuration files for nsapi_redirect.dll to be used for connecting +Netscape Web Server to Tomcat. An obj.conf will be written to +conf/auto relative to TOMCAT_HOME. The contents of this +obj.conf will need to be merged with the obj.conf +file being used for the disired server.

+ +

For additional information on connecting Tomcat to Netscape, see the +Tomcat Netscape HowTo document.

+ +

Important Note: The configuration files are not written as part of a +normal startup of Tomcat. To generate the configuration files on demand, +append:

+
    jkconf
+

or

+
    -jkconf
+

to the startup command. Tomcat will initialize, write the configuration files, +and then shutdown. This may be done while Tomcat 3.3 is running. To generate +the configuration files during normal startup, add:

+
    jkconf="true"
+

to the <ContextManager ... > element in the +server.xml file.

+ +

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionDefault
configHomeDefault parent directory for the following paths. Ignored whenever any + of the following paths is absolute.TOMCAT_HOME
nsapiJkPath to Netscape mod_jk plugin file.Windows: bin/nsapi_redirect.dll
+ Netware: bin/nsapi_rd.nlm
+ Unix and all others: bin/nsapi_redirector.so
objConfigPath to use for writing the Netscape obj.conf configuration file.conf/auto/obj.conf
objectNameName of the Object to execute the requests.servlet
workersConfigPath to workers configuration file.conf/jk/workers.properties
jkLogPath to log file to be used by nsapi_redirect.dll.logs/nsapi_redirect.log
jkDebugJK Loglevel setting. May be debug, info, error, or emerg.emerg
jkWorkerThe desired worker. Must be set to one of the workers defined in the + workers.properties file. "ajp12", "ajp13" or + "inprocess" are the workers found in the default + workers.properties file.Defaults to "ajp13" if an Ajp13Connector is in use, otherwise it + defaults to "ajp12".
forwardAllIf true, forward all requests to Tomcat. This helps ensure that all the + behavior configured in the web.xml file functions correctly. If false, + let Netscape serve static resources. Warning: When false, some configuration + in the web.xml may not be duplicated in Netscape. Review the configuration + files to see the actual configuration being set in Nescape.true
noRootIf true, the root context is not mapped to Tomcat. If false and + forwardAll is true, all requests to the root context are mapped to Tomcat. + If false and forwardAll is false, only JSP and servlets requests to the + root context are mapped to Tomcat. true
+ +

Example(s)

+ +
+<NSConfig forwardAll="true" noRoot="false" objectName="tomcat" />
+
+ +
+ + + +

PolicyLoader

+ +

Type: Configuration

+ +

Description

+ +

Installs a security manager and/or a policy file if Tomcat is started +with "sandbox" enabled. This module has no effect if you +specify a "-Djava.security.policy=..." in the startup command +for the Java VM. Setting the policy on the command line is the +preferred method.

+ +

Attributes

+ + + + + [... 589 lines stripped ...] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org
AttributeDescription