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
Building 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 and etc, as for Debian Based distros like Ubunto deb packages will be comming soon
Requirements:
- Sould be Built on Redhat Based Linux distros
- must have a rpm-build installed in your box
if rpm-build is not installed in your linux box execute the command below
yum install rpm-build
Step -1:
- Build Jetty
Step 0:
- Building a Jetty RPM Requires Maven BeanShell Plugin, if you have done this already proceed to Step 1
on your <jetty-root>/contrib/maven-beanshell-plugin dir execute the maven command bellow
mvn install
Step 1:
- now you are ready to build jetty rpm pacakges
- in your <jetty-root>/contrib/rpm , execute the command bellow
mvn install
Step 2:
- your Jetty RPM Files are found at the <jetty-root>/contrib/rpm/target folder
Rpm File Outputs:
- jetty6-6.1-*.noarch.rpm - Jetty RPM Package
- jetty6-lib-6.1-*.noarch.rpm - Jetty Library RPM Package
- jetty6-jsp-2.0-api-6.1-*.noarch.rpm - Jetty JSP 2.0 API RPM Package
- jetty6-jsp-2.1-api-6.1-*.noarch.rpm - Jetty JSP 2.1 API RPM Package
- jetty6-servlet-2.5-api-6.1-*.noarch.rpm - Jetty Servlet 2.5 API RPM Package
- jetty6-samples-6.1-*.noarch.rpm - Jetty Samples RPM Package
How To Install RPM Files
Using Yum (advantages of using yum is dependencies are automatically downloaded)
- create a file jetty.repo on /etc/yum.repos.d containing the configuration below
- to create a repository you need to execute createrepo command in your directory where your rpms riside
createrepo /to/path/where/your/rpms/reside/
- if createrepo is not available in your box, then execute first the command below then try executing again, the command above
yum install createrepo
Jetty RPM File Structures
jetty6-6.1-*.noarch.rpm - Jetty RPM Package
Requires: jetty6-lib
Output Files:
- /etc/init.d/jetty - Jetty6 Startup Script for Redhat Based Linux Service Daemon, this file is added in chkconfig so that this will automatically start jetty as a service
- jetty-home (located at /usr/share/jetty6) - contains start.jar, Licences, README.txt, resources and VERSIONS.txt
- jetty-conf (located at /etc/jetty6) - contains jetty configuration files
- /etc/jetty6/contexts - where you will add your contexts
- jetty-webapps (located at /var/jetty6/webapps) - where you will deploy your web-applications
- jetty-logs (located at /var/log/jetty6) - where log files are located
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
Output Files:
- jetty6-lib (located at /usr/share/java/jetty6-lib) - jetty jar libraries namely, jetty, jetty-util annotations, jetty-management, jetty-setuid and libsetuid.so
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:
- /usr/share/java/jetty6-jsp-2.0-api - jsp 2.0 jar libraries and other libraries
jetty6-jsp-2.1-api-6.1-*.noarch.rpm - Jetty JSP 2.1 API RPM Package
Requires: ant
Output Files:
- /usr/share/java/jetty6-jsp-2.1-api - jsp 2.1 jar libraries and other libraries
jetty6-servlet-2.5-api-6.1-*.noarch.rpm - Jetty Servlet 2.5 API RPM Package
Requires: none
Output Files:
- /usr/share/java/jetty6-servlet-2.5-api - contains servlet 2.5 jar library
jetty6-samples-6.1-*.noarch.rpm - Jetty Samples RPM Package
Requires: jetty
Output Files:
- installs sample web-app in /var/jetty6/webapps, namely: test and test-jaas sample web-apps