Hi Michael,

I think I've just fixed your issue in SVN trunk. See this report for
details:

"Add the Engine classloader as default classloader"
http://restlet.tigris.org/issues/show_bug.cgi?id=583 

Best regards,
Jérôme Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : Thierry Boileau [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 11 septembre 2008 12:03
À : [email protected]
Objet : Re: Restlet 1.1-RC1 in OSGi

Mail sent on the 09/02 and apparently lost.
---

Hi Michael,

as I'm not aware of the integration effort with OSGi I'm not able to 
give you a quick answer.
Jérôme can answer you after his return from vacations on the 11th of 
september.

Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org <http://www.restlet.org/>
Noelios Technologies ~ Co-founder ~ http://www.noelios.com 
<http://www.noelios.com/>
  
> Hi all,
>
> In trying to run 1.1-RC1 in Eclipse as an OSGi bundle following the
> instructions on the wiki, I found I had to add
> Engine.setUserClassLoader(this.getClass().getClassLoader()) to my
> Activator.  I've updated the wiki with this, but wondered if it was a
> bug and should be set in the restlet activator?
>
> If I don't include the user classloader I get the following exception:
> 5/09/2008 09:33:47 com.noelios.restlet.http.HttpServerHelper getConverter
> SEVERE: Unable to create the HTTP server converter
> java.lang.ClassNotFoundException
> at org.restlet.util.Engine.loadClass(Engine.java:283)
> at
com.noelios.restlet.http.HttpServerHelper.getConverter(HttpServerHelper.java
:105)
> at
com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:145)
> at
com.noelios.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettySe
rverHelper.java:174)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnectio
n.java:829)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:4
50)
>
> Regards,
> Michael.

Reply via email to