Hello Sébastien,

the files distributed in the "bin" directory allow to run a Java application in a protected and controlled environment (a dedicated JVM). This is based on the Tanuki wrapper ( see http://wrapper.tanukisoftware.org/). The wrapper is configured by the way of one file "wrapper.conf" (see "conf" sub-directory). The delivered conf file launches the 3rd sample code (org.restlet.example.tutorial.Part03) which is a simple "Hello World! server" (=>http://www.restlet.org/tutorial#part03) listening on port 8182. This wrapper is not part of the Restlet project. It has been provided, I think, for some experienced user have some special needs.

I'm not sure you're really looking for that kind of stuff. Restlet is not an application, but a framework. It helps you to developp your own server-side application (and client-side applications, too) based on the REST architecture style.

I don't know if I really answer your question. Let us know what troubles you!

Best regards,
Thierry Boileau

Hi there,

I wanted to try Restlet (1.0b23) on OSX (Intel, 10.4), and run into some problems. At first, the "restlet.sh" has DOS line encodings that the shell does not like at all (dos2unix fixes that).

Second, when I run the script ("./restlet.sh start"), I see the following backtrace in the wrapper.log file:

STATUS | wrapper  | 2007/03/01 12:53:08 | Launching a JVM...
INFO | jvm 1 | 2007/03/01 12:53:08 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2007/03/01 12:53:08 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO   | jvm 1    | 2007/03/01 12:53:08 |
INFO   | jvm 1    | 2007/03/01 12:53:08 |
INFO | jvm 1 | 2007/03/01 12:53:08 | WrapperSimpleApp: Encountered an error running main: java.net.BindException: Address already in use INFO | jvm 1 | 2007/03/01 12:53:08 | java.net.BindException: Address already in use INFO | jvm 1 | 2007/03/01 12:53:08 | at java.net.PlainSocketImpl.socketBind(Native Method) INFO | jvm 1 | 2007/03/01 12:53:08 | at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) INFO | jvm 1 | 2007/03/01 12:53:08 | at java.net.ServerSocket.bind(ServerSocket.java:319) INFO | jvm 1 | 2007/03/01 12:53:08 | at java.net.ServerSocket.<init>(ServerSocket.java:185) INFO | jvm 1 | 2007/03/01 12:53:08 | at java.net.ServerSocket.<init>(ServerSocket.java:97) INFO | jvm 1 | 2007/03/01 12:53:08 | at com.noelios.restlet.ext.simple.HttpServerHelper.start(HttpServerHelper.java:52) INFO | jvm 1 | 2007/03/01 12:53:08 | at org.restlet.Server.start(Server.java:313) INFO | jvm 1 | 2007/03/01 12:53:08 | at com.noelios.restlet.example.tutorial.Part03.main(Part03.java:44) INFO | jvm 1 | 2007/03/01 12:53:08 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2007/03/01 12:53:08 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1 | 2007/03/01 12:53:08 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1 | 2007/03/01 12:53:08 | at java.lang.reflect.Method.invoke(Method.java:585) INFO | jvm 1 | 2007/03/01 12:53:08 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 1 | 2007/03/01 12:53:08 | at java.lang.Thread.run(Thread.java:613)
STATUS | wrapper  | 2007/03/01 12:53:10 | <-- Wrapper Stopped

The problem is that I don't know which address and which port the wrapper is trying to bind to, and I also don't know how to specify a specific one.

Is there anyway to do that easily ?
Thanks :)

 -- Sébastien

Reply via email to