Thanks, Jerome, Looks like you were right, though I'm still not sure why it wasn't working before.
Thanks! > -----Original Message----- > From: Jerome Louvel [mailto:[EMAIL PROTECTED] > Sent: 15 August 2007 17:44 > To: [email protected] > Subject: RE: javax.servlet.ServletException: non-HTTP request or response > > > > Hi David, > > Are you sure it is an issue within the Restlet code? Looking at the stack > trace, it seems that the exception is thrown by > org.mortbay.jetty.servlet.ServletHolder.handle > > Your Restlet Application looks fine. Note that the usage of Directory with > the ServerServlet adapter requires a fix to work, this will be > released with > the upcoming 1.0.5. See this issue for details: > http://restlet.tigris.org/issues/show_bug.cgi?id=344 > > Best regards, > Jerome > > > -----Message d'origine----- > > De : David Leangen [mailto:[EMAIL PROTECTED] > > Envoyé : mercredi 15 août 2007 08:40 > > À : [email protected] > > Objet : javax.servlet.ServletException: non-HTTP request or response > > > > > > Hello, > > > > I am trying to get Restlet up and running in my OSGi container, using > > HttpService. > > > > I created a TestApplication [1]. > > > > I registered it like so: > > > > servlet = new ServerServlet(); > > initParams.put( "org.restlet.application", > > "restlet.TestApplication" ); > > httpService.registerServlet( "/restlet", servlet, initParams, null ); > > > > And tried accessing the URL at localhost:8080 (the port on > > which my osgi > > is registered). > > > > However, I get the error below. > > > > > > Any helpful hints would be most appreciated! > > > > > > > > > > 15:02:44.600 WARN!! Exception for /restlet/testFile > > javax.servlet.ServletException: non-HTTP request or response > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:800) > > at > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) > > at > > org.mortbay.jetty.servlet.OsgiServletHandler.dispatch(OsgiServ > > letHandler.java:108) > > at > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler > > .java:567) > > at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) > > at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) > > at org.mortbay.http.HttpServer.service(HttpServer.java:879) > > at > > org.mortbay.http.HttpConnection.service(HttpConnection.java:790) > > at > > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961) > > at > > org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) > > at > > org.mortbay.http.SocketListener.handleConnection(SocketListene > > r.java:218) > > at > > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) > > at > > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) > > > > >

