Jetty is a project at the Eclipse Foundation.
| Homepage: | http://www.eclipse.org/jetty |
| Downloads: | http://download.eclipse.org/jetty/ |
| Documentation: | http://www.eclipse.org/jetty/documentation/current/ |
| About: | http://www.eclipse.org/jetty/about.php |
| Jetty Powered: | http://www.eclipse.org/jetty/powered/ |
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
Installing Jetty RPM
Installing Java
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 java.sh containing the code below
- execute the code below to apply the newly created environment varialbles
source /etc/profile
Jetty RPM Installation
Using Yum
- 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
cd /etc/yum.repos.d
wget http://jpackage.org/jpackage.repo
- Installing Jetty can be done using the Jetty RPM, below assumes that you have created a Jetty Repository but if not, See Creating Jetty Yum Repository
yum install jetty6
Manually Installing RPMS
- if you have not yet built the jetty rpm please see Building Jetty RPM, then build it
- download the 3rd party rpm dependencies of jetty rpm
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/ant-1.6.5-4jpp.noarch.rpm
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/crimson-1.1.3-17jpp.noarch.rpm
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/xml-commons-1.3.03-10jpp.noarch.rpm
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/xml-commons-jaxp-1.1-apis-1.3.03-10jpp.noarch.rpm
- first install the dependency rpms, install the rpms manually, note: that installing these should be done in a sequential way
rpm -isv xml-commons-1.3.03-10jpp.noarch.rpm
rpm -isv xml-commons-jaxp-1.1-apis-1.3.03-10jpp.noarch.rpm
rpm -isv crimson-1.1.3-17jpp.noarch.rpm
rpm -isv ant-1.6.5-4jpp.noarch.rpm
- now you are ready to install the jetty rpms, note: that installing these should be done in a sequential way
rpm -isv jetty6-servlet-2.5-api-6.1*.noarch.rpm
rpm -isv jetty6-jsp-2.0-api-6.1*.noarch.rpm
rpm -isv jetty6-jsp-2.1-api-6.1*.noarch.rpm
rpm -isv jetty6-lib-6.1*.noarch.rpm
rpm -isv jetty6-6.1*.noarch.rpm
Installing Jetty Sample
- Jetty Samples RPM Includes, Test and JNDI Test
- To install these files, you need to install jetty6-sampless RPM, execute the code below to install
yum install jetty6-samples
- installing manually
rpm -isv jetty6-samples-6.1*.noarch.rpm
Starting and Stopping Jetty
- Starting Jetty
service jetty start
- stopping Jetty
service jetty start
Jetty Logs
- jetty logs are found at /var/log/jetty6
- you can view the logs on runtime by using tail -f, this will enable you to view the logs, on realtime
tail -f yourjetty.log
Building Jetty RPM
- You need to build Jetty before you can build the jetty RPMs, in your <jetty-root>/trunk execute the command below
mvn install
- Jetty RMP Packager Requires BeanShell maven Plugin, you need to build this one if you havent built BeanShell Plugin yet, in your <jetty-root>/trunk/contrib/maven-beanshell-plugin execute the code below
mvn install
- Now you are ready to build your Jetty RPMs, in your <jetty-root>/trunk/modules/rpm
mvn install
Creating Jetty Yum Repository
- 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
- execute a createrepo command to add necessary files for your repository
createrepo /where/your/jetty/rpms/is/located
Jetty RPM Dependency Structure
- jetty6-samples RPM: Requires: jetty6
- jetty6 RPM: Requires: jetty6-lib
- jetty6-lib RPM: Requires: jetty6-servlet-2.5-api, jetty6-jsp-2.0-api and jetty6-jsp-2.1-api
- jetty6-servlet-2.5-api RPM: Requires: none
- jetty6-jsp-2.0-api RPM: Requires: ant >= 1.6.5
- jetty6-jsp-2.1-api RPM: Requires: ant >= 1.6.5
- 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)
Jetty 3rd Party RPM Dependency Download Links
The jetty 3rd Party RPM Dependencies can be found at www.jpackage.org repository
ant 1.6.5
dowload page = http://www.jpackage.org/browser/rpm.php?jppversion=1.7&id=2348
direct link = http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/ant-1.6.5-4jpp.noarch.rpm
crimson 1.1.3
dowload page = http://www.jpackage.org/browser/rpm.php?jppversion=1.7&id=6653
direct link = http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/crimson-1.1.3-17jpp.noarch.rpm
xml-commons 1.3
dowload page = http://www.jpackage.org/browser/rpm.php?jppversion=1.7&id=6435
direct link = http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/xml-commons-1.3.03-10jpp.noarch.rpm
xml-commons-jaxp 1.3
dowload page = http://www.jpackage.org/browser/rpm.php?jppversion=1.7&id=6436
direct link = http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/xml-commons-jaxp-1.1-apis-1.3.03-10jpp.noarch.rpm