Difference between revisions of "Jetty/Starting/Downloads"

From Eclipsepedia

Jump to: navigation, search
Line 66: Line 66:
 
== Linux Distributions ==
 
== Linux Distributions ==
  
TBD
+
* Debs:  http://central.maven.org/maven2/org/mortbay/jetty/dist/jetty-deb/
 +
* RPMs:  http://central.maven.org/maven2/org/mortbay/jetty/dist/jetty-rpm/
 +
 
  
 
== Distribution Contents ==
 
== Distribution Contents ==
Line 89: Line 91:
 
* start.jar : JAR which invokes jetty-7 (see also [[Jetty/Howto/Run Jetty|How to Run Jetty]])
 
* start.jar : JAR which invokes jetty-7 (see also [[Jetty/Howto/Run Jetty|How to Run Jetty]])
 
* webapps : directory containing webapps which will be run under the default configuration of Jetty; contains demo webapps
 
* webapps : directory containing webapps which will be run under the default configuration of Jetty; contains demo webapps
 +
 +
== Starting and Stopping ==
 +
 +
To start:
 +
 +
<source lang="txt">
 +
/etc/init.d/jetty start
 +
<source>
 +
 +
To stop:
 +
 +
<source lang="txt">
 +
/etc/init.d/jetty stop
 +
</source>
 +
 +
Other commands:
 +
 +
<source lang="txt">
 +
/etc/init.d/jetty help
 +
</source>
 +
  
  

Revision as of 21:32, 23 September 2012


Contents

Introduction

You can download Jetty as a distribution bundle, a Maven dependency, an OSGi bundle, or install it via a Debian/RPM distribution. When you download and unpack the binary, it is extracted into a directory called jetty-distribution-VERSION. Put this directory into a convenient location. The rest of the instructions in this wiki will refer to this location as either JETTY_HOME or as $(jetty.home).

Jetty@eclipse Download

  • Eclipse Downloads
    • Core Jetty Web Server (HTTP & Websocket)
    • Core Jetty Servlet Container
    • JNDI, JMX, OSGi, JASPI modules
    • HTTP Client
JETTY_VERSION=7.5.0.v20110901
wget http://download.eclipse.org/jetty/$JETTY_VERSION/dist/jetty-distribution-$JETTY_VERSION.tar.gz
tar xfz jetty-distribution-$JETTY_VERSION.tar.gz
cd jetty-distribution-$JETTY_VERSION
java -jar start.jar

Jetty@codehaus Download

  • Codehaus Downloads:
    • Hightide Application Server (Jetty WebServer plus EE features)
    • Jetty with non-eclipse modules: JSP, Spring, Terracotta, Openspaces, etc.
    • Jetty Maven plugin
    • Debian, RPM distributions
    • Older Jetty releases
wget http://dist.codehaus.org/jetty/jetty-hightide-8.0.0/jetty-hightide-8.0.0.v20110901.tar.gz
tar xfz jetty-hightide-8.0.0.v20110901.tar.gz
cd jetty-hightide-8.0.0.v20110901
java -jar start.jar

Maven Repositories

The distribution bundles from both Eclipse and Codehaus are available as Maven artefacts:

The individual Jetty modules are also available as Maven artefacts under the org.eclipse.jetty and org.mortbay.jetty group IDs. See Jetty/Howto/Use Jetty with Maven for more details.

OSGi Update Repositories

Jetty is available as OSGi bundles from P2 update sites: Jetty 7.x P2 Update and Jetty 8.x P2 Update.


Source Download

Each jetty module has an equivalent jar containing the sources for that module. These sources jars have the same name as the binary jar, but with a "-sources" qualifier. These can be found on the maven repository at http://repo2.maven.org/maven2/org/eclipse/jetty in the relevant jetty module directories.

Additionally, we provide some handy binary and source jars that contain a useful mixture of classes. The list of these aggregate jars is at http://repo1.maven.org/maven2/org/eclipse/jetty/aggregate/.

Linux Distributions


Distribution Contents

Here's a quick rundown of the distribution's contents. The top-level directory contains:

  • LICENSE-APACHE-2.0.TXT : license file for Jetty (Jetty 7 is dual-licensed)
  • LICENSE-ECLIPSE-1.0.HTML : license file for Jetty (Jetty 7 is dual-licensed)
  • META-INF : for packaging
  • README.txt : contains useful getting started information
  • VERSION.txt : Release information
  • about.html : "About This Content" page from Eclipse
  • bin : utility shell scripts to help run Jetty on unix systems
  • contexts : hot deploy contexts directory
  • etc : directory for Jetty configuration files
  • javadoc : contains the javadoc
  • lib : contains all the JAR files necessary to run jetty
  • logs : directory for request logs
  • notice.html : licenses information and exceptions.
  • resources : directory containing additional resources for classpath
  • start.ini : Default start arguments
  • start.jar : JAR which invokes jetty-7 (see also How to Run Jetty)
  • webapps : directory containing webapps which will be run under the default configuration of Jetty; contains demo webapps

Starting and Stopping

To start:

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, otj, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


/etc/init.d/jetty start
<source>

To stop:

<source lang="txt">
/etc/init.d/jetty stop

Other commands:

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, otj, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


/etc/init.d/jetty help



Jetty-6