simple spring example help
Hi, I am trying to wire up the following in spring. I can get the topComponent object from my spring context. I invoke start() on it, however the SpringRouter I have setup does not seem to be registered? No matter what URI I go to at localhost:8090/restlet/20140101 i just get 404's What am I missing? Any help appreciated, thanks LOG OUTPUT Starting the internal [HTTP/1.1] server on port 8090 2014-08-20 10:06:210:0:0:0:0:0:0:1%0 - - 8090 GET /restlet/20140101 - 404 439 0 4 http://localhost:8090 my user agent bean id=topComponent class=org.restlet.ext.spring.SpringComponent property name=server bean class=org.restlet.ext.spring.SpringServer constructor-arg value=http / constructor-arg value=8090 / /bean /property property name=defaultTarget ref=defaultRouter / /bean bean id=topComponent.context class=org.springframework.beans.factory.config.PropertyPathFactoryBean / bean id=defaultRouter class=org.restlet.ext.spring.SpringRouter constructor-arg ref=topComponent.context/ property name=attachments map entry key=/restlet value-ref=rootRouter / /map /property /bean bean id=rootRouter class=org.restlet.ext.spring.SpringRouter property name=attachments map entry key=/{apiVersion} ref bean=myResource/ /entry /map /property /bean bean id=myResource class=my.MyResource scope=prototype /bean -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3086957
lib/org.restlet.ext.ssl.jar missing from 2.2.2 zip
The 2.2.2 documentation states that to enable https one must add lib/org.restlet.ext.ssl.jar to the class path. (source: http://restlet.com/learn/guide/2.2/core/security/https) But no such jar appears in the distribution. Omitting this jar appears to lead to the runtime exception: java.lang.ClassNotFoundException: org.restlet.ext.ssl.PkixSslContextFactory Please advise. Thanks. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3086969
Re: lib/org.restlet.ext.ssl.jar missing from 2.2.2 zip
Robert, PkixSslContextFactory has moved to org.restlet.ext.jsslutils.jar Check your start up code, do you have a line like this: parameters.add(sslContextFactory, org.restlet.ext.ssl.PkixSslContextFactory); Either comment out this line or fix the package name here. -- Timothy Aanerud On 8/20/2014 1:39 PM, Robert Barnett wrote: The 2.2.2 documentation states that to enable https one must add lib/org.restlet.ext.ssl.jar to the class path. (source: http://restlet.com/learn/guide/2.2/core/security/https) But no such jar appears in the distribution. Omitting this jar appears to lead to the runtime exception: java.lang.ClassNotFoundException: org.restlet.ext.ssl.PkixSslContextFactory Please advise. Thanks. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3086969 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3086973