5 Installing Apache Tomcat Application Server

Note:

In this chapter, we assume that you are using a UNIX based system. Therefore, the commands that are provided in this chapter for your reference are only for UNIX based systems. Commands for Windows based systems may be different.

5.1 Tomcat Installation Steps

To install the Tomcat Application Server

  1. Download and install a supported JDK.

  2. Decompress the Tomcat archive file:

    tar xvfz apache-tomcat-<version>.tar.gz

  3. Rename the apache-tomcat-<version> directory and move it to a desired location. (The rest of this section refers to the new path of this directory as <tomcat_home>.)

  4. Create a file named setenv.sh in the <tomcat-home>/bin directory. Add the following lines to the file:

    CATALINA_HOME=<tomcat_home>
    CATALINA_PID="$CATALINA_HOME"/tomcat.pid
    

    Adding tomcat.pid ensures that the Tomcat process is killed when the shutdown.sh command is executed with the -force argument.

  5. Set the JAVA_HOME variable to the JDK folder of the version of Java that will be used. For example:

    export JAVA_HOME=/opt/jdk1.6.0.39

  6. Start the application server by running the startup command.

    <tomcat_home>/bin/startup.sh

  7. Access the following URL in a web browser: http://<hostname>:8080/

    This brings you to Tomcat's default homepage.

  8. Shut down the application server by running the shutdown command.

    <tomcat_home>/bin/shutdown.sh -force

  9. After you have successfully installed Tomcat, you will need to configure Tomcat for WebCenter Sites before installing WebCenter Sites. For information about the WebCenter Sites installation process and WebLogic configuration procedures, see the Oracle Fusion Middleware WebCenter Sites Installation Guide.