Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3


Installing the prerequisites / dependencies

The Jetty RPMs need some prerequisites such as java and ant. These may be included by hand or a tool like yum or up2date may be used.

There are differences between the distributions in the packaging, versioning and availability of these prerequisites and this page is only and indication of some install paths. The documentation for your distro is probably a better place to look. Good resources to read include:

Return to Using Jetty RPMs

Jetty RPM Dependency Structure

  • servlet25: Requires: java >= 0:1.4.2
  • jetty6-core: Requires: servlet25, java >= 0:1.4.2
  • jetty6: Requires: jetty6-core
  • jetty6-plus: Requires: jetty6-core, java >= 0:1.5.0, servlet25
  • jetty6-demos: Requires: jetty6
  • jsp (jett6-jsp-2.1-6.1.16-1jpp): Requires: ant >= 1.6, java >= 0:1.5.0 (jsp2.1)
  • ant 1.6.5 RPM: Requires: crimson 1.1.3, xml-commons 1.3, xml-commons-jaxp-1.3 (these RPMs  including ant can be found at jpackage repository)

Using Yum for dependencies

Yum is a tool that can find and install dependent RPMs and is used by some distributions like fedora.
First you will need to add JPackage Yum Repo so that 3rd party RPM Dependencies of Jetty can be automatically downloaded and installed, dependencies such as ant, crimson, xml-commons, and xml-commons-jaxp

Note: The site is a good source of java RPMs and information.

As root:


cd /etc/yum.repos.d

The dependencies can now be installed with yum commands:


yum install ant

Note it is also possible to create a local yum repository to hold the jetty
RPMs and then a single command can be used to load Jetty and it's dependencies (see below).

Manual dependencies

If yum (or similar) is not available, the dependencies may be installed manually: 

  •  Install the downloaded RPMs

sudo rpm -isv xml-commons-jaxp-1.1-apis-1.3.03-11jpp.noarch.rpm
sudo rpm -isv crimson-1.1.3-17jpp.noarch.rpm
sudo rpm -isv ant-1.6.5-4jpp.noarch.rpm

sudo rpm -isv xml-commons-1.3.03-11jpp.noarch.rpm
sudo rpm -isv mx4j-3.0.1-7jpp.noarch.rpm 

Java is also needed.

Java dependency

Jetty needs at least java 1.4, although java5.0 or greater is recommended.
Jetty may work with the gcj java supplied by default on some distros, but the configuration will need to be changed to avoid add NIO connectors. It is best to get a full jdk.

see for some instructions on how to do this.

 Using Yum

  • installing Java 1.5 using yum, execute the code below 

 yum install jdk

  • setting up JAVA_HOME, on root account so that jetty will be able to find JAVA_HOME, in your /etc/profile.d/ add a file named containing the code below
Code Block
export JAVA_HOME="/usr/java/jdk1.5.0_12"
export JAVA_BIN="$JAVA_HOME/bin"

export MAVEN_HOME="/home/webtide/java_applications/maven/maven-2.0.6"
export MAVEN_BIN="$MAVEN_HOME/bin"

  • execute the code below to apply the newly created environment varialbles

    source /etc/profile 


Installing Jetty RPMs

The Jetty RPMs may be installed manually using rpm command or by creating a local yum repository that contains the jetty RPMs

Manual install

  • to manuall install jetty using rpm execute the code below 

rpm -ivh jetty6-servlet-2.5-api-6.1.16-1jpp.noarch.rpm
rpm -ivh jetty6-core-6.1.16-1jpp.noarch.rpm
rpm -ivh jetty6-6.1.16-1jpp.noarch.rpm
rpm -ivh jetty6-plus-6.1.16-1jpp.noarch.rpm
rpm -ivh jett6-jsp-2.1-6.1.16-1jpp.noarch.rpm
rpm -ivh jetty6-javadoc-6.1.16-1jpp.noarch.rpm
rpm -ivh jetty6-demos-6.1.16-1jpp.noarch.rpm

Using Yum to Install Jetty RPMs

  •     You need to Create a yum repository, so that your yum application could locate your Jetty RPM files, that it needs
  •     Create a local yum repository, add a repository configuration file in your /etc/yum.repos.d/jetty.repo containing the code below
Code Block
name=Jetty6 $releasever - Jetty6 Local Repo
  •     execute a createrepo command to add necessary files for your repository

createrepo /where/your/jetty/rpms/is/located

  • Jetty and its dependencies may then be installed with

yum install $package

Return to Using Jetty RPMs

Contact the core Jetty developers at
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery