Date Created: Fri 21-Jan-2011

Related Document Categories:



    Installing Tomcat 6 with Java 6


    I am installing tomcat in /var/apps as this is where my disks pace is.

    Before I can run Tomcat I Downloaded/Uploaded jdk-6u23-linux-x64.bin and jre-6u23-linux-x64.bin to my Linux server into /var/apps/java6_install
    cd /var/apps/java6_install
    chmod 755 /jdk-6u23-linux-x64.bin
    ./jdk-6u23-linux-x64.bin

    chmod 755 /jre-6u23-linux-x64.bin
    ./jre-6u23-linux-x64.bin

    No I ensured that I had Apache ANT installed.

    http://apache.mirror.rbftpnetworks.com/ant/binaries/apache-ant-1.8.1-bin.tar.gz

    I installed ANT to

    /var/apps/ant

    I then created a soft link to ant

    ln -s /var/apps/apache-ant-1.8.1/bin/ant /usr/bin

    Set up JAVA_HOME $env in catalina.sh

    cd /var/apps/apache-tomcat-6.0.29/bin

    vi catalina.sh


    After the first line, add following
    JAVA_HOME=/var/apps/jdk1.6.0_23

    For example

    #!/bin/sh
    JAVA_HOME=/var/apps/jdk1.6.0_23
    JRE_HOME=var/apps/jre1.6.0_23


    Test the Tomcat installation

    Tomcat
    cd /var/apps/apache-tomcat-6.0.29/bin
    ./startup.sh

    Since I already have JBOSS running on 8080 I need to change the Tomcat port.

    vi //var/apps/apache-tomcat-6.0.29/conf/server.xml to chnage the port form 8080 to 8081 and SSL from 8443 to 8444

    <Connector port="8081" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8444" />

    <Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />

    tail /var/apps/apache-tomcat-6.0.29/logs/catalina.out

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories