Configuring Apache Tomcat servers

After you create a middleware server representation of an Apache Tomcat server, you must 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.

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

Deprecated feature Deprecated feature: Intelligent Management support for using Apache Tomcat servers is deprecated. Support for using the administrative console to configure these servers is removed. Use wsadmin scripting to manage these servers.depfeat

Procedure

  1. Update the WebSphere variables so that they match the settings on the node that is running the Apache Tomcat server. Follow the directions in the topic on modifying variables using wsadmin scripting to edit the following variables:
    CATALINA_HOME
    Specifies the home directory of your Apache Tomcat installation.
    Default values are set at the cell scope level:
    [Windows] C:\Program Files\Apache Software Foundation\Tomcat
    [AIX HP-UX Solaris] /usr/local/apache-tomcat

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

    JAVA_HOME
    Specifies the directory of your 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. Launch wsadmin scripting with a username and password so that you can start and stop server operations.

    Follow the directions in the topic on starting the wsadmin scripting client to enable security. The startMiddlewareServer command and the stopMiddlewareServer command require a user name and password to run.

  3. Optional: Update the HTTP and HTTPS ports for your servers. The default port is 8080. If you use a value other than the default, you must change the port. Use the modifyForeignServerProperty command in the middleware server management administrative tasks to change the ports.
  4. [AIX HP-UX Solaris] Optional: Disable security for the Tomcat server. By default, security is enabled when you create the server. Use the modifyForeignServerProperty command in the middleware server management administrative tasks to start the server without security. If you want to create a new Tomcat server that does not have security enabled, you must create a custom Tomcat server template. Read the topic on creating middleware server templates.

What to do next

Task topic    

Terms and conditions for information centers | Feedback

Last updated: March 19, 2013 10:03 PM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=twve_mwstomcat
File name: twve_mwstomcat.html