Restlet: Unable to start Restlet with SSL -
i trying configure restlet 2.3.10 jse using internal jetty server use ssl.
my code looks follows:
component component = new component(); component.getservers().add(protocol.https, 8110); series<parameter> parameters = component.getcontext().getparameters(); parameters.add("sslcontextfactory", "org.restlet.engine.ssl.defaultsslcontextfactory"); parameters.add("keystorepath", keystorefile.getabsolutepath()); parameters.add("keystorepassword", "keystorepass"); parameters.add("keypassword", "keypass"); parameters.add("keystoretype", "jks"); component.getdefaulthost().attach(new myapp()); component.start();
i have added following jar files specified in documentation:
lib/org.restlet.ext.simple_3.1.jar lib/org.simpleframework3.1/org.simpleframework.jar lib/org.restlet.ext.ssl.jar lib/org.jsslutils_0.5/org.jsslutils.jar
when ran application, following error
unable register helper org.restlet.ext.ssl.httpsserverhelper java.lang.noclassdeffounderror: org/restlet/engine/connector/httpinboundrequest
what missing?
regards nw
Comments
Post a Comment