Jetty has moved!
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/
Contact the core Jetty developers at www.webtide.com
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
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

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

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


  • No labels
Contact the core Jetty developers at www.webtide.com
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