I just gave a try at first Server tutorial from http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/319-restlet.html and here is the source
public class FirstServerResource extends ServerResource {
public static void main(String[] args) throws Exception {
// Create the HTTP server and listen on port 8182
new Server(Protocol.HTTP, 8182, FirstServerResource.class).start();
}
@Get
public String toString() {
return "hello, world";
}
}
and its throwing out me error,
WARNING: No available server connector supports the required protocols: 'HTTP' . Please add the JAR of a matching connector to your classpath.
I am using Eclipse SDK with GWT and i did had the org.restlet.jar for GWT AND GAE. and also i have configured the WEB.xml as
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param>
<param-name>org.restlet.application</param-name>
<param-value>com.final2.server.FirstServerResource</param-value>
</init-param>
<init-param>
<param-name>org.restlet.clients</param-name>
<param-value>HTTP HTTPS</param-value>
</init-param>
</servlet>
When i run the application FirstServerResource,the server instance must be created and i must be able to locate it at localhost:8182 ,but it does not happens and i get the above error(No available server connector)
Any help regarding this please? I am hitting it hard for few days with this :( !