Make sure that Maven is installed and configured, as described in Running the Jersey Examples.
Open a terminal prompt and navigate to jersey.home/samples/storage-service.
To run the sample, enter mvn clean compile exec:java and press Enter.
This will build, package, and deploy the web storage service using Grizzly, an HTTP web server.
To run the application on GlassFish, copy the classes from the example into sources of the web application. Then, create a web.xml file that uses the Jersey servlet. The Java classes are not dependent on a particular container.
To view the Web Application Description Language file (the WADL), open a web browser and navigate to:
The WADL description in also shown in this document at Example: The Storage-Service WADL
Leave the terminal window open, and open a new terminal window to continue with exploring this sample.