Using the Jetty RPMs


RPM (RedHat Package Manager) is a popular way of distributing applications on RedHat Linux Derived Distros. Here is a step on how to make a RPM package for Jetty6,

Note: this one is only for RedHat-based distros like CentOS, Feodora, RedHat, etc. For Debian-based distros, see Debian Packages.

The steps to use RPMS are

  1. Obtain the Jetty RPMs. These are build and distributed with each Jetty release since 6.1.5. You can also build the jetty RPMS from source.
  2. Install the prerequisits RPMs and packages (eg java and ant).
  3. Install the Jetty RPMs.
  4. Configure and run

Installing Web Applications

Once your Jetty6 rpm is installed you can deploy your webapps at /var/lib/jetty6/webapps

Starting and Stopping Jetty

The Jetty start script is installed in /etc/init.d and linked to the /etc/rc3.d directory so that it is started at boot time. It can also be manually started and stopped:

Starting Jetty

sudo service jetty start

Stopping Jetty

sudo service jetty stop

Jetty Logs

   tail -f yourjetty.log

Jetty RPM File Structures

jetty6-6.1-*.noarch.rpm - Jetty RPM Package

Requires: jetty6-lib

Output Files:

jetty6-lib-6.1-*.noarch.rpm - Jetty Library RPM Package

Requires: jetty6-jsp-2.0-api, jetty6-jsp-2.1-api and jetty6-servlet-2.1-api, mx4j >= 3.0

Output Files:

jetty6-jsp-2.0-api-6.1-*.noarch.rpm - Jetty JSP 2.0 API RPM Package

Requires: jakarta-commons-el, xerces-j2, ant

Output Files:

jetty6-jsp-2.1-api-6.1-*.noarch.rpm - Jetty JSP 2.1 API RPM Package

Requires: ant

Output Files:

jetty6-servlet-2.5-api-6.1-*.noarch.rpm - Jetty Servlet 2.5 API RPM Package

Requires: none

Output Files:

Requires: jetty

Output Files: