Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS
Configure Apache Tomcat servers
After creating a middleware server representation of an Apache Tomcat server in the administrative console, update a few configuration settings so that they are defined specifically for your Apache Tomcat installation.
Before you begin
Federate the node that is running the Apache Tomcat server and create a representation of the server in the administrative console.
About this task
If you installed Apache Tomcat in a location other than the default directory, update the WebSphere® variables so that the installation directory is correct. To perform server operations on your server from the administrative console, configure the server operations for the Apache Tomcat middleware server representation.
Procedure
- Update the WebSphere variables so that they match the settings on the node that is running the Apache Tomcat server. In the administrative console, click Environment > WebSphere Variables. Edit the following variables:
- CATALINA_HOME
- Specifies the home directory of your Apache Tomcat installation.
- JAVA_HOME
- Directory of your Java™ Development Kit (JDK) installation.
- Update server operations for the Tomcat server to include the user name and password.
- In the administrative console, click Servers > Other middleware servers > Apache Tomcat servers > tomcat_server > Server operations.
- Edit the start and stop server operations to include the user name and password that is required to run these commands.
- Optional: Update the HTTP and HTTPS ports for your servers. The default port is 8080. If you use a value other than the default, change the port in the administrative console.
- In the administrative console, click Servers > Other middleware servers > Apache Tomcat servers > tomcat_server .
- Edit HTTP connector or HTTPS connector. Click OK and save and synchronize your changes.
What to do next
- To use this configuration when you are configuring your other Apache Tomcat servers, create a server template of your current Apache Tomcat server.
- To view the log files for your Apache Tomcat server in the administrative console, use the external log viewing service. This service is enabled by default. The following directories are configured by default:
- {$CATALINA_HOME}/logs
- {$WASCE_HOME}/catalina/logs
- {$AGENT.HOME}/logs/{$WAS_SERVER_NAME}
- To edit configuration files for your Apache Tomcat server, use the external configuration service. The following files are included by default:
- {$CATALINA_HOME}/conf/server.xml
- {$CATALINA_HOME}/conf/catalina.policy
- {$CATALINA_HOME}/conf/web.xml
- After creating representations of all the Apache Tomcat servers, you can add the representations to a dynamic cluster.
Previous topic
Federating middleware nodesNext topic
Creating dynamic clusters
Related concepts
Middleware nodes and servers
Supported middleware server types
Related tasks
Configure middleware server operations
Configure WebSphere variables
Creating middleware server templates
Configure the external log viewing service Adding middleware servers to configurationsRelated information
Middleware server creation administrative tasks