The Apache Tomcat Servlet/JSP Container

Apache Tomcat 7

Version 7.0.5, Nov 24 2010
Apache Logo

Links

Top Level Elements

Executors

Connectors

Containers

Nested Components

Cluster Elements

Global Settings

The Server Component

Table of Contents
Introduction

A Server element represents the entire Catalina servlet container. Therefore, it must be the single outermost element in the conf/server.xml configuration file. Its attributes represent the characteristics of the servlet container as a whole.

Attributes
Common Attributes

All implementations of Server support the following attributes:

AttributeDescription
className

Java class name of the implementation to use. This class must implement the org.apache.catalina.Server interface. If no class name is specified, the standard implementation will be used.

address

The TCP/IP address on which this server waits for a shutdown command. If no address is specified, localhost is used.

port

The TCP/IP port number on which this server waits for a shutdown command. Set to -1 to disable the shutdown port. Note: Disabling the shutdown port will prevent shutdown.bat and catalina.bat from stopping the Tomcat process on Windows operating systems. Operating systems that use the *.sh scripts will not be affected by disabling the shutdown port.

shutdown

The command string that must be received via a TCP/IP connection to the specified port number, in order to shut down Tomcat.

Standard Implementation

The standard implementation of Server is org.apache.catalina.core.StandardServer. It supports the following additional attributes (in addition to the common attributes listed above):

AttributeDescription
Nested Components

The following components may be nested inside a Server element:

Special Features

There are no special features associated with a Server.


Copyright © 1999-2010, Apache Software Foundation