Hi Dave, Looks like you're missing the javax jar. In the lib fold, there are two javax.servlet folders. From what I remember you need to include the javax.servlet.jar from one of these, particularly from javax.servlet_2.5 if you are using Jetty 6.
I think we probably need an entry in the Wiki, but I haven't had a chance to work out all the dependancies for each type of Server or Client. AJ Quoting Dave Pawson <[EMAIL PROTECTED]>: > On 08/11/06, Dave Pawson <[EMAIL PROTECTED]> wrote: > > On 08/11/06, A.J. Barnes <[EMAIL PROTECTED]> wrote: > > > Dave, > > > > > > For the Client the jar you need is com.noelios.ext.net > > > > com.noelios.ext.restlet.jar > > com.noelios.restlet.ext.net.jar > > org.restlet.jar > > > > and the first one ran! > > Oh dear. > Following the faq advice on jars, I finish up with the following, > trying to run the section 3 example. > > This is offputting. > > regards DaveP > > > > init: > deps-jar: > compile: > run: > 08-Nov-2006 20:04:04 com.noelios.restlet.Factory <init> > SEVERE: Unable to register the server connector > com.noelios.restlet.ext.jetty.HttpServerHelper > java.lang.reflect.InvocationTargetException > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at com.noelios.restlet.Factory.<init>(Factory.java:191) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at org.restlet.util.Factory.getInstance(Factory.java:152) > at org.restlet.Server.<init>(Server.java:171) > at org.restlet.Server.<init>(Server.java:154) > at org.restlet.Server.<init>(Server.java:129) > at org.restlet.Server.<init>(Server.java:71) > at tranformation.Serv1.lsn(Serv1.java:65) > at tranformation.Serv1.main(Serv1.java:71) > Caused by: java.lang.NoClassDefFoundError: > javax/servlet/http/HttpServletRequest > at > com.noelios.restlet.ext.jetty.JettyServerHelper.<init>(JettyServerHelper.java:151) > at > com.noelios.restlet.ext.jetty.HttpServerHelper.<init>(HttpServerHelper.java:62) > ... 18 more > 08-Nov-2006 20:04:04 com.noelios.restlet.Factory <init> > SEVERE: Unable to register the server connector > com.noelios.restlet.ext.jetty.HttpsServerHelper > java.lang.reflect.InvocationTargetException > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at com.noelios.restlet.Factory.<init>(Factory.java:191) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at org.restlet.util.Factory.getInstance(Factory.java:152) > at org.restlet.Server.<init>(Server.java:171) > at org.restlet.Server.<init>(Server.java:154) > at org.restlet.Server.<init>(Server.java:129) > at org.restlet.Server.<init>(Server.java:71) > at tranformation.Serv1.lsn(Serv1.java:65) > at tranformation.Serv1.main(Serv1.java:71) > Caused by: java.lang.NoClassDefFoundError: > javax/servlet/http/HttpServletRequest > at > com.noelios.restlet.ext.jetty.JettyServerHelper.<init>(JettyServerHelper.java:151) > at > com.noelios.restlet.ext.jetty.HttpsServerHelper.<init>(HttpsServerHelper.java:113) > ... 18 more > 08-Nov-2006 20:04:04 com.noelios.restlet.Factory createHelper > WARNING: No available server connector supports the required protocols: > HTTP > BUILD SUCCESSFUL (total time: 1 second) > > > > > -- > Dave Pawson > XSLT XSL-FO FAQ. > http://www.dpawson.co.uk > -- A.J. Barnes, B.Sc., B.N. Poisons Information Officer National Poisons Centre / Te Kaunuku Paitini O Aotearoa Ph: +64 3 479 7250 Fax: +64 3 477 0509 ======================================================= CAUTION: This e-mail message may contain information that is confidential and subject to privilege. It is intended solely for the addressee. If you are not the intended recipient, you are notified that any use, distribution or copying of this message or data is prohibited. If you received this e-mail in error, please notify me immediately and delete all material pertaining to this e-mail. Thank you.

