RESTful Web Services Developer's Guide

Installing Jersey on GlassFish

The following section provides details for installing Jersey on Sun GlassFish Enterprise Server v3 Prelude (hereafter referred to as GlassFish v3 Prelude, or simply GlassFish). These steps assume that GlassFish is installed on your system. Jersey is installed as an add-on to GlassFish using the Update Tool that ships with GlassFish. The sample applications that ship with Jersey are also installed during this step.

ProcedureAdding Jersey to GlassFish

This task describes how to download and add Jersey technology to the GlassFish container.

  1. Start the Update Tool.

    There are several ways to start the Update Tool. Here a few of the options:

    • From the Windows Start menu, select GlassFish v3 Prelude, then select Start Update Tool.

    • From a Windows file browser or command prompt, or from a Unix terminal prompt, change to the directory where GlassFish was installed, then the bin directory, and run updatetool.exe (Windows) or updatetool (Unix).

    • From a web browser, open the Admin Console by going to http://localhost:4848, then select Update Tool from the left pane.

  2. Click Available Add-ons.

  3. Select Jersey RESTful Web Services for GlassFish.

  4. Click Install.

  5. Accept the license.