Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

How to find out the version of Jetty

Jetty standalone

To get Jetty to print out it's version you can type:

Code Block
>  java -jar start.jar --version
jetty 6.0-SNAPSHOT

Alternatively, look at the log file. The second line should be the version number in an INFO message. Like this:

No Format
:INFO:  jetty 6.0-beta14

Jetty plugin

Look at the INFO messages printed out by Jetty when the plugin starts up. After any build-related messages from Maven, you should see the following:

No Format

[INFO] Starting jetty 6.0-beta14 ...
:INFO:  jetty 6.0-beta14
. . .
[INFO] Started Jetty Server

Jetty embedded

If you want to print out the runtime version of Jetty, you can use the following code snippet:

Code Block
 import org.mortbay.jetty.Server;

 Server server;
 ...
 server = new Server();
 ...
 System.err.println ("Starting jetty "+server.getClass().getPackage().getImplementationVersion()+" ...");
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