|
We have new deb and rpm artifacts. Try them from http://repo2.maven.org/maven2/org/mortbay/jetty/dist |
|
Instructions below are for jetty-6.1.18 and up |
Beginning jetty-6.1.18, jetty6 will be available in the ubuntu repos.
Checkout http://svn.codehaus.org/jetty-contrib/jetty-deb/trunk/
See README.txt
libjetty6-java
libjetty6-extra-java
jetty6
$ sudo apt-get install libjetty6-java
$ sudo apt-get install libjetty6-extra-java
$ sudo apt-get install jetty6
Edit /etc/default/jetty6
Set:
NO_START=0
Then do:
$ sudo service jetty6 start
$ sudo service jetty6 stop
/usr/share/java/jetty6-ajp.jar -> ../jetty6/lib/ext/jetty-ajp-6.1.18.jar
/usr/share/java/jetty6-client.jar -> ../jetty6/lib/ext/jetty-client-6.1.18.jar
/usr/share/java/jetty6.jar -> ../jetty6/lib/jetty-6.1.18.jar
/usr/share/java/jetty6-java5-threadpool.jar -> ../jetty6/lib/ext/jetty-java5-threadpool-6.1.18.jar
/usr/share/java/jetty6-management.jar -> ../jetty6/lib/management/jetty-management-6.1.18.jar
/usr/share/java/jetty6-naming.jar -> ../jetty6/lib/naming/jetty-naming-6.1.18.jar
/usr/share/java/jetty6-rewrite-handler.jar -> ../jetty6/lib/ext/jetty-rewrite-handler-6.1.18.jar
/usr/share/java/jetty6-servlet-tester.jar -> ../jetty6/lib/ext/jetty-servlet-tester-6.1.18.jar
/usr/share/java/jetty6-sslengine.jar -> ../jetty6/lib/sslengine/jetty-sslengine-6.1.18.jar
/usr/share/java/jetty6-start.jar -> ../jetty6/start.jar
/usr/share/java/jetty6-util5.jar -> ../jetty6/lib/util5/jetty-util5-6.1.18.jar
/usr/share/java/jetty6-util.jar -> ../jetty6/lib/jetty-util-6.1.18.jar
Dependencies to add:
libslf4j-java
Modules to add:
jetty-jsp-2.1
jetty-plus
|
The instructions below are deprecated (for jetty-6.1.17 and below). |
Having downloaded all of the jetty debian packages, you should install them using dpkg or synaptic or your favourite package installer in this order, where <version> is replaced by the version of jetty you want to install:
The home directory for the debian distribution of jetty is /usr/share/jetty6. Other directories under /var and /etc are linked to from the /usr/share/jetty6 directory.
The configuration of the server is in /etc/jetty6. The configuration files listed in /etc/jetty6/jetty.conf are passed to the command line when it is started by /etc/init.d/jetty6.
Webapps can be deployed by placing them in /var/lib/jetty6/webapps (linked from /usr/share/jetty6/webapps). Additional contexts can be configured and (hot) deployed via the /etc/jetty6/contexts directory (linked from /usr/share/jetty6/contexts).
/usr/share/jetty6 - jetty.home directory
/contexts - webapp context files
/database - default database install dir
/etc - configuration files
/lib - jar files
/logs - log files
/resources - extra runtime config
start.jar
/webapps - webapp static deployment directory
/etc/init.d/jetty6 --> start/stop script
/etc/default/jetty6 --> default values read by start/stop script
/etc/jetty6 --> /usr/share/jetty6/etc
/etc/jetty6/contexts --> /usr/share/jetty6/contexts
/var/lib/webapps --> /usr/share/jetty6/webapps
/var/log/jetty6 --> /usr/share/jetty6/logs
/var/run/jetty6.pid --> running jetty process id
|
If you have just installed the debian packages, then you will need to edit the /etc/default/jetty6 file. Make the change indicated in comment:
NO_START=1 # change to 0 to allow Jetty to start |
You can now start jetty:
/etc/init.d/jetty6 start |
To stop jetty:
/etc/init.d/jetty6 stop |
You can list all of the commands to control jetty by typing:
/etc/init.d/jetty6 help |