I am trying to use Restlet in embedded OSGi environment. I have added the org.restlet.jar version 2.3.0 in the class path of my restlet test bundled. But it kept giving me the following error.
java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler
The documentation says that this jar should be enough but it is currently not working. The bundle is started by an Equinox Framework which is started by a standalone launcher, later to be used outside of Eclipse environment.
Is there another jar fie that I should add to get the proper server connector? I will not be using servlets so the Restlet connectors are the only options.
When I manually start the bundle I get the following warning:
WARNING: No available server connector supports the required protocols: 'HTTP' . Please add the JAR of a matching connector to your classpath.
I had already spent a lot of time to get it working with no luck. Thanks in advance!