+

Search Tips   |   Advanced Search

Configure Apache Tomcat servers

After creating a middleware server representation of an Apache Tomcat server, update the configuration settings to match your Apache Tomcat installation.

Federate the node running the Apache Tomcat server, and create a representation of the server.

If we 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 the server, configure the server operations for the Apache Tomcat middleware server representation.

  • Intelligent Management support for using Apache Tomcat servers is stabilized. We can use the console or wsadmin scripting to manage these servers.

    1. Update the WebSphere variables so that they match the settings on the node running the Apache Tomcat server.

      • If we use wsadmin commands to edit the variables, follow the directions in the topic on modifying variables .

      • If we use the console to edit the variables, click Environment > WebSphere variables. Edit the variables.

      CATALINA_HOME

      Home directory of the Apache Tomcat installation.

      Default values are set at the cell scope level:

      C:\Apache Software Foundation\Tomcat

      /usr/local/apache-tomcat

      If the home directory is different on different nodes in our configuration, create the CATALINA_HOME variable for a specific node.

      JAVA_HOME

      Directory of the Java Development Kit (JDK) installation.

      If the JAVA_HOME variable is not set in the environment of the node, define the JAVA_HOME variable at the cell scope or at the node scope.

    2. Update server operations for the Tomcat server to include the user name and password so that we can start and stop server operations.

      • If we use the wsadmin scripting, follow the directions in the topic on starting the wsadmin scripting client . The startMiddlewareServer command and the stopMiddlewareServer command require a user name and password to run.

      • If we use the 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 required to run these commands.

    3. Optional: Update the HTTP and HTTPS ports for your servers. The default port is 8080. If we use a value other than the default, you must change the port.

      • If we use wsadmin commands, run the modifyForeignServerProperty command to change the ports.

      • If we use the console, click Servers > Other middleware servers > Apache Tomcat servers > tomcat_server. Edit HTTP connector or HTTPS connector. Click OK. Save and synchronize your changes.

    4. Optional: Disable security for the Tomcat server. By default, security is enabled when creating the server. To create a Tomcat server that does not have security enabled, create a custom Tomcat server template. Read about creating middleware server templates.

      • Use the modifyForeignServerProperty command in the middleware server management administrative tasks to start the server without security.

      • If we use the console, click Servers > Apache Tomcat servers > tomcat_server > Start. Remove the -security argument from the list of Executable arguments. Click OK. Save and synchronize the changes.


    What to do next

    • To use this configuration when we are configuring the other Apache Tomcat servers, create a server template of the current Apache Tomcat server.

    • View the log files for the Apache Tomcat server on the computer that hosts it.

    • Edit configuration files for the Apache Tomcat server on the computer that hosts it.

    • After creating representations of all the Apache Tomcat servers, we can add the representations to a dynamic cluster.


    Related concepts

  • Middleware nodes and servers
  • Supported middleware server types


    Related tasks

  • Add, managing, and removing nodes
  • Configure middleware server operations
  • Modify variables
  • Start the wsadmin scripting client
  • Add middleware servers to configurations
  • Create middleware server templates
  • Configure the external log viewing service
  • Create dynamic clusters
  • Intelligent Management: middleware server management administrative tasks

  • addNode command
  • Intelligent Management: middleware server creation administrative tasks