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