I've started wondering if it wouldn't be good to
provide a full example of the simplest possible setup
(eg Simple server, one "Hello World" restlet), either
in the tutorial, FAQ, or the distribution? 

I've seen a few of this kind of start-up problems on
the mailing list, which may throw off potential new
users of the framework from going for the project.

Regards,
Kyrre 

--- Thierry Boileau <[EMAIL PROTECTED]> wrote:

> >Since I haven't added a stop method, I need to
> figure out how to stop it
> from Eclipse.
> hmm, can you check the console view?
> 
> >BTW wouldn't it be worthwhile to add such a project
> to the tutorial. I
> mean, code snippets are great, but it's good to have
> something working.
> We'll think about it maybe in the FAQ.
> 
> best regards,
> Thierry Boileau
> 
> 
> On 9/27/07, Erik Vullings <[EMAIL PROTECTED]>
> wrote:
> >
> > Thierry,
> >
> > Thanks - I finally have that part working. I feel
> like an idiot that it
> > was this simple. When running it as a Java
> Application, it complains about
> > some project errors (but doesn't specify them),
> but starts anyways. Since I
> > haven't added a stop method, I need to figure out
> how to stop it from
> > Eclipse. BTW wouldn't it be worthwhile to add such
> a project to the
> > tutorial. I mean, code snippets are great, but
> it's good to have something
> > working.
> >
> > Thanks again,
> > Erik
> >
> > On 9/26/07, Thierry Boileau <[EMAIL PROTECTED]>
> wrote:
> > >
> > > Erik,
> > >
> > > Assuming that your classpath contains the jars
> (and dependencies) of the
> > > Jetty server connector, calling the "start"
> method on the server
> > > instance (or component, see later in the
> tutorial) makes the server
> > > start. Then the server is ready to listen to
> client requests using the
> > > Jetty connector. Actually, there is no real
> "Jetty server".
> > > If you want to stop the server, you can do it
> programmatically by
> > > invoking the "stop" method on the the server
> instance (or component), or
> > >
> > > you can just stop the current thread in Eclipse.
> > >
> > > I hope this will help you.
> > > Thierry Boileau
> > >
> > > > Thanks for both your help! I'm getting there,
> but not yet completely.
> > > > So far, I've got your POM compiling well the
> tutorial files. But
> > > > what's an easy way to start (and restart)
> jetty from Eclipse? I don't
> > > > assume RESTlet allow for hot deployment ( i.e.
> any class that is
> > > > changed is automatically picked up by the
> framework, without a need to
> > >
> > > > redeploy, as in Tapestry).
> > > >
> > > > Thanks,
> > > > Erik
> > > >
> > > > On 9/26/07, * Thierry Boileau*
> <[EMAIL PROTECTED]
> > > > <mailto: [EMAIL PROTECTED]>> wrote:
> > > >
> > > >     Hello Erik,
> > > >
> > > >     well, I think you're about to run your
> first Restlet server.
> > > >
> > > >     If your main method contains the lines of
> code indicated in
> > > >     tutorial#3 (
> > > >    
>
http://www.restlet.org/documentation/1.0/tutorial#part03)
> and if
> > > >     your classpath contains at least :
> > > >      - org.restlet.jar (restlet API)
> > > >      - com.noelios.restlet.jar (the reference
> implementation of the
> > > API)
> > > >      - the jar of one server connector (see
> > > >    
> http://www.restlet.org/documentation/1.0/connectors
> as indicated
> > > >     in the tutorial
> > > >    
>
http://www.restlet.org/documentation/1.0/tutorial#part02
> > > >    
>
<http://www.restlet.org/documentation/1.0/tutorial#part02>).
> > > >
> > > >     it should work.
> > > >
> > > >     best regards,
> > > >     Thierry Boileau
> > > >
> > > >
> > > >     On 9/26/07, *Erik Vullings *
> <[EMAIL PROTECTED]
> > > >     <mailto: [EMAIL PROTECTED]>> wrote:
> > > >
> > > >         Hi Thierry,
> > > >
> > > >         I'm a bit further now, and I could get
> a basic example to run.
> > > >         However, I would still like to see a
> basic Hello World
> > > >         (RESTlet as a server) application,
> with build.xml or pom.xml
> > > >         files, and the correct directory
> hierarchy. Shouldn't this be
> > > >         available from the website. Or a maven
> archetype to quickly
> > > >         setup the basic structure. It has
> already taken me a day or
> > > >         more to start, which is not really a
> recommendation for
> > > >         RESTlet (it took me less time to get a
> basic struts(2) or
> > > >         tapestry webapp project running, and
> RESTlet is supposed to be
> > > >         simple...).
> > > >
> > > >         My current project looks like this
> (improvements???)
> > > >         root
> > > >           build
> > > >             classes etc
> > > >           lib
> > > >             whole bunch of jar files
> > > >           src
> > > >             java
> > > >               packagename
> > > >                 Main.java
> > > >
> > > >         Thanks
> > > >         Erik
> > > >
> > > >
> > > >         On 9/24/07, *Thierry Boileau* <
> [EMAIL PROTECTED]
> > > >         <mailto: [EMAIL PROTECTED]>> wrote:
> > > >
> > > >             Hello Erik,
> > > >
> > > >             this sample code must be run
> inside a servlet container
> > > >             such as Tomcat,
> > > >             Jboss, etc.
> > > >             You can use one of the inner
> servlet containers provided
> > > >             by Eclipse and
> > > >             link it with the sample project
> (use Eclipse 3.3 e.g.) or
> > > >             generate the
> > > >             war of the project and deploy it
> in your prefered servlet
> > > >             container
> > > >             manually.
> > > >
> > > >             best regards,
> > > >             Thierry Boileau
> > > >             > Hi,
> > > >             >
> > > >             > I'm new to RESTlet, and liked
> the tutorial descriptions
> > > >             on restlet.org <http://restlet.org
> >
> > > >             > < http://restlet.org>. I've also
> had a look at the Wiki,
> > > >             and did manage
> > > >             > to find some examples (like
> Restlet-example) by Irfan
> > > >             Jamadar.
> > > >             > Unfortunately, it doesn't come
> with a tutorial how to
> > > run
> > > >             it...
> > > >             >
> > > >             > I'm using Eclipse, have read the
> developer FAQ#21 and
> > > >             included the
> > > >             > library directory from Restlet
> in my plugin directory. I
> 
=== message truncated ===


------------------------------------------------------------
Kyrre Kristiansen


      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

Reply via email to