Java Servlets and JSPs are made available on the VPS v3 via Tomcat, the flagship product of the Apache Jakarta Project. Tomcat is a world-class implementation of the Java Servlet 2.4 and Java Server Pages 2.0 specifications.

Installation

  1. Install Java (JDK 2).
  2. Connect to your server through SSH and execute the following command from the prompt:

    % vinstall tomcat

This starts the Tomcat engine. It knows how to parse JavaServer pages, Java Servlets, and other kinds of Java implementations. It runs a web server on port 8080.

Configuration

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

http://YOUR-DOMAIN.NAME/manager/html

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

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

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

    The name and password fields can be any value you choose but the roles need to include admin, though there can be additional (comma separated) roles.

  2. Restart Tomcat. First stop Tomcat with this command:

    % /usr/local/tomcat/bin/shutdown.sh

    Then restart Tomcat again with this this command:

    % /usr/local/tomcat/bin/startup.sh

More Information

For more information, see:

Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!

1555 N Naperville/Wheaton Road, Suite 107
Naperville, IL 60563
phone 630.420.2550
fax 630.420.2771