The Java EE 6 Tutorial, Volume I

ProcedureDeploying and Running the JAXRSHelloWorld Example

Before You Begin

The application's Run properties must be set to run the RESTful web service. For the provided application, this task has been completed. For future reference, right-click the project node, select Properties, then select Run, and enter the Relative URL. For this example, you would enter /resources/helloWorld.

  1. Right-click the project node, JAXRSHelloWorld, and select Deploy.

  2. Right-click the project node, JAXRSHelloWorld, and select Run.

  3. A browser opens and displays Hello World at the URL http://localhost:8080/HelloWorld/resources/helloWorld.

    The browser displays the text “Hello World”.