Editing the Tomcat 4.0.x Server Configuration File

The main configuration file for Tomcat 4.0.x is the server.xml file. It provides configuration information for Tomcat components and specifies deployment information for the server. For simple web modules, editing the server.xml file is not necessary because the IDE makes the necessary changes automatically. Editing is only necessary for advanced configuration, such as setting up authentication based on JNDI or database lookups. For more information about configuring Tomcat, see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html.

Most edits to the server configuration file can be achieved by editing properties for Tomcat and for servlet contexts, or by using menu commands in the Explorer. If you prefer, however, you can edit the server.xml file directly.

Be aware that you hand-edit the server.xml file at your own risk; the IDE cannot repair a damaged server.xml file. You are strongly encouraged to create a backup version of your working server.xml file before beginning to edit by hand.

To edit the server.xml file:

1. On the Runtime tab of the Explorer, expand the Tomcat 4.0 node under the Installed Servers node, then right-click on the node for the installation of Tomcat that you want to edit.
2. From the contextual menu, choose Configure (server.xml).

The server.xml file appears in the Source Editor. You can now edit server.xml as you would any other source code in the IDE.

See also
Tomcat 4.0.x Installation Node

Legal Notices