I am having the same error but I've no reason to believe is related to
a classpath issue. I'm using Restlet 2.0.8
I fall into this problem trying to add HTTP client protocol to my
applicaiton to allow a new client resource to contact a third web
service from inside my application context.
Here's how I configure the protocols:
<bean id="component" class="org.restlet.ext.spring.SpringComponent">
<property name="client">
<util:constant static-field="org.restlet.data.Protocol.HTTP" />
</property>
</bean>
<bean id="application" class="com.app.MyApplication">
<constructor-arg>
<util:property-path path="component.context" />
</constructor-arg>
And I get:
SEVERE: For security reasons, don't pass the component context to
child Restlets anymore. Use the Context#createChildContext() method
instead.class com.app.MyApplication
Anyone understand why does this happen or at least, what's the proper
way to add protocols to the application ChildContext?
On Tue, Jun 28, 2011 at 4:50 AM, Paul Morris <[email protected]> wrote:
> I think I had some classpath problems or perhaps even a mixture of different
> release version jars. I deleted all jars from WEB-INF/lib and replaced the
> restlet and other dependent jars with those packaged in the 2.0.8 release and
> everything started behaving as expected. (Shaking my head).
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2778874
>
--
Daniele Dellafiore
http://danieledellafiore.net
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2790401