The eXo IDE application provides the original approach to operate with REST Service to validate, deploy/undeploy and launch applications, which are compatible with the JSR-311 specification without restarting the server, or installing additional programs:

Table. Accessibility of REST Service Operations


With eXo IDE, you can validate REST Service before saving, deploying, launching or undeploying the service. The feedback from server is displayed in the Output Tab:

Illustration. REST Service operations

All REST Service commands are placed at the right part of the toolbar and in the Run on the top menu.

To clear the Output Panel, use the special button at the right top corner of this panel.

This function is for users with the administrator role only.

To deploy a REST Service, do as follows:

The deployment request is sent to the server. In case of no errors, the message is displayed in the Output Tab as below:

[INFO]rennes.groovy deployed successfully

Otherwise, there will be an error message, for example:


[ERROR] rennes.groovy deploy failed. Error (400: Bad Request)
Unexpected error. Error occurs when parse stream, compiler error:
startup failed, rennes.groovy: 4: unable to resolve class javax.ws.rs.Path1
@ line 4, column 1.rennes.groovy: 8: unable to resolve class Path , unable to
find class for annotation
@ line 8, column 1.rennes.groovy: 11: unable to resolve class Path , unable to
find class for annotation
@ line 11, column 3.
3 errors

To undeploy a Rest Service, do as follows:

In case of no errors, there is a success message in the Output Tab.

[INFO] /repository/collaboration/rennes.groovy undeployed successfully.

You can deploy multiple REST Services, and double-deploy the services. However, you cannot undeploy services which were not previously deployed. In this case, you will receive an error message from the server as below:

With eXo IDE, you can not only write and deploy services, but launch these services and view service response in the Output Tab. You can view WADL-description of methods, make requests with your own header, query, path parameters and body content using one of the supported methods. To do that, simply call the Launch REST Service... button on the toolbar, or select Run > Launch REST Service... on the top menu as follows:

You will receive a success message if the path is verified to be correct or an error message in the Output Tab.

To learn about launching REST Service, see the REST Service operations illustration above.

Table. Reproducing service annotations in the Launch REST Service dialog


The class path configuration means the setting of paths to the source files or folders. This class path will be used for project sources compilation. Classpath file is located in the root of the project's directory, but it's not visible in browser tree, because can not be directly edited by user. So, to view the sources paths of the project, do as follows:

Illustration. Configure classpath form

The OPTIONS-request is sent. You will see the response in the Output Tab. For example:

The request is created and then sent. You will see the response in the Output Tab:


[OUTPUT] - -Status - - - - - - - -
200 OK
- -Headers- - - - - - - -
Server : Apache-Coyote/1.1
Content-Type : text/html
Transfer-Encoding : chunked
Date : Mon, 05 Jul 2010 09:06:55 GMT
- -Text - - - - - - - - -
PathParam 1:value1; Test Query Parameter 1: value2; Test-Header1: value3; Body: example