The Apache Tomcat Servlet/JSP Container

Apache Tomcat 7

Version 7.0.64, Aug 19 2015
Apache Logo


Top Level Elements




Nested Components

Cluster Elements



The Server Component

Table of Contents

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.

Common Attributes

All implementations of Server support the following attributes:


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.


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


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 works well when Tomcat is started using Apache Commons Daemon (running as a service on Windows or with jsvc on un*xes). It cannot be used when running Tomcat with the standard shell scripts though, as it will prevent shutdown.bat|.sh and catalina.bat|.sh from stopping it gracefully.


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):

Nested Components

The following components may be nested inside a Server element:

Special Features

There are no special features associated with a Server.


Notice: This comments section collects your suggestions on improving documentation for Apache Tomcat.

If you have trouble and need help, read Find Help page and ask your question on the tomcat-users mailing list. Do not ask such questions here. This is not a Q&A section.

The Apache Comments System is explained here. Comments may be removed by our moderators if they are either implemented or considered invalid/off-topic.

Copyright © 1999-2015, Apache Software Foundation