Web Services Tutorial - RESTful client

I followed the tutorial in http://www.jetbrains.com/idea/docs/Web_Services_with_IntelliJ_IDEA.pdf and am having some trouble with the REST client portion. I created the REST service, and followed the instructions for the REST client. However, the tutorial ends without saying how to relate the REST client to the REST server presented in the previous pages of the tutorial. I assume that there is a way to execute the Client portion against the Server portion. When I just try to execute the REST HelloWorldClient, I get this error:

Aug 10, 2012 10:49:48 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.3 06/17/2010 05:04 PM'
Aug 10, 2012 10:49:48 AM com.sun.jersey.server.impl.application.RootResourceUriRules <init>
SEVERE: The ResourceConfig instance does not contain any root resource classes.
Exception in thread "main" com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:100)
at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1013)
at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:153)
at com.sun.jersey.server.impl.application.WebApplicationImpl$11.f(WebApplicationImpl.java:652)
at com.sun.jersey.server.impl.application.WebApplicationImpl$11.f(WebApplicationImpl.java:649)
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:177)
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:649)
at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:168)
at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:251)
at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:233)
at com.sun.jersey.api.container.httpserver.HttpServerFactory.create(HttpServerFactory.java:114)
at com.sun.jersey.api.container.httpserver.HttpServerFactory.create(HttpServerFactory.java:89)
at example.HelloWorldClient.main(HelloWorldClient.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Obviously my sample is missing something, apparently a resource of some sort. What am I doing wrong here? Thanks.

Please sign in to leave a comment.