Systems Status

Announce RSS Feed RSS

Blog RSS Feed RSS

Help Topics

Deschutes Facilities

Campus Facilities

User Account Info

Roundcube Mail

Contact Systems

ipv6 ready

Introduction

Tomcat is a container for JavaServer Pages™ (JSP™) and Java™ Servlets. For instructional use, each user will need to install their own server in their home directory. This is done with the command tomcatctl. If you use these scripts, you'll need to run Tomcat on the computer named ix.cs.uoregon.edu and use a port number supplied by your instructor.

tomcatctl install

The command install_tomcat creates a tomcat directory (~/tomcat-home) and sets up the initial configuration.

jdash@ix: ~ 24$ tomcatctl install
Installed data versions:

This script is designed to setup an individual tomcat server

Extracting appropriate files. This includes the examples.
You should have already been assigned a port to use.

input port number 2222           <<<<<< This port number is
                                     supplied by your instructor --

This account has been setup for tomcat. All tomcat files
are located in ~/tomcat-6.0.13.

If you already had a tomcat-home

If you had previously installed tomcat you'll get a message like this:

jdash@ix: ~ 25$ tomcatctl install
Installed data versions: 6.0.13

This script is designed to setup an individual tomcat server

This account has already been setup for the following versions
of tomcat: 6.0.13

Do you wish to proceed [y/n]? n

If you decide to install a new Tomcat anyway, the install script will install over your tomcat-home directory. It doesn't delete the old directory first so your files should remain. You may want to save your additions in ~/tomcat-home/webapps or ~/tomcat-home/lib to a safe place first.

tomcatctl start

The command tomcatctl start creates a .my.conf file and starts the server.

jdash@ix: ~ 26$ tomcatctl start  
Installed data versions: 6.0.13

starting tomcat-6.0.13

Your URL is http://ix.cs.uoregon.edu:2222, where the port number (2222 in this example) is the port number you entered to the install script.

tomcatctl stop

The command tomcatctl stop will stop your tomcat server.

jdash@ix: ~ 27$ tomcatctl stop
Installed data versions: 6.0.13

stopping tomcat-6.0.13

tomcatctl status

You can use tomcatctl status for a quick check of your running server.

jdash@ix: ~ 18$ tomcatctl status
Installed data versions: 6.0.13

tomcat-6.0.13:7676 (proc 9997) is working.

If the server is not running the results will look like this:

jdash@ix: ~ 22$ tomcatctl status
Installed data versions: 6.0.13

You can also use any web browser to check the status of your server.

jdash@ix: ~ 19$ lynx -dump -head http://ix.cs.uoregon.edu:7676
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/"7354-1178329344000"
Last-Modified: Sat, 05 May 2007 01:42:24 GMT
Content-Type: text/html
Content-Length: 7354
Date: Wed, 08 Aug 2007 22:47:20 GMT
Connection: close

External Links

Edited: November 05, 2014, at 10:51 AM
Copyright © 2017, University of Oregon, All rights reserved
Privacy Policy