Home   |   Products   |   Order   |   Support   |   ? !1 UK Web Hosting

Tomcat Java Servlets and JSPs are made available on the Virtual Server via Tomcat, the flagship product of the Apache Jakarta Project. Tomcat is a world-class implementation of the Java Servlet 2.2 and Java Server Pages 1.1 Specifications.

Do the following, according to your Virtual Server O/S.

  • FreeBSD
    Tomcat is unavailable. Try mod_jserv.

  • Solaris
    Connect to your Virtual Server via Telnet or SSH and follow these instructions:

    1. Install Java (JDK 2).

    2. Install the Jakarta Tomcat Server. Run this command:

      % vinstall tomcat

      This is the Java Servlet engine. It knows how to parse JavaServer pages, Java Servlets, and other kinds of things. It runs a web server on port 8080 and has a special jserv-type protocol listening on 8007. It also has an enhanced and improved protocol listening on 8009, which is what mod_jk Apache Module talks to it on. The mod_jserv Apache Module talks on 8007.

    3. Start Tomcat. Use this command:

      % virtual /usr/local/jakarta/jakarta-tomcat/bin/startup.sh

    4. Install the mod_jk Apache Module

  • BSD/OS Upgrade!
    Tomcat is unavailable.

  • Huh?
    If you don't know the Virtual Server O/S, try the following:

The Tomcat installation includes online admin pages that can be accessed at this URL:


In order to set up a user name and password for these online admin pages, complete the following steps.

  1. Change the admin context to "true". Open the ~/usr/local/jakarta/jakarta-tomcat-3.2.1/conf/server.xml file and look for the following entry:

    <!-- Admin context will use tomcat.core to add/remove/get info about
         the webapplications and tomcat internals.
         By default it is not trusted - i.e. it is not allowed access to
         tomcat internals, only informations that are available to all
         servlets are visible.
         If you change this to true, make sure you set a password.
          <Context path="/admin"
                   trusted="false" >

    You need to change the field trusted="false" to trusted="true".

  2. Open the ~/usr/local/jakarta/jakarta-tomcat-3.2.1/conf/tomcat-users.xml file and add a user with roles set to admin. An example would be as follows:

    <user name="johnny"  password="cash" roles="admin" />

    The name and password fields can be whatever you want but the roles need to include admin, though there can be additional comma separated roles.

  3. Restart Tomcat. Use these commands:

    % kill PID
    % virtual /usr/local/jakarta/jakarta-tomcat/bin/startup.sh

More Information
For more information, see:

Site Map  |  Contact Us!
Copyright © 1998-2001 Bright Builders, Inc. All rights reserved.
Last Modified: Wed May 30 17:48:15 2001 GMT
Page Built: Mon Jul 2 19:57:53 2001 GMT

A L S O  S E E
· Apache Modules
· Virtual Server Help