Problem running Hudson on port other than 8080

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem running Hudson on port other than 8080

Bernd Schiffer
Hi.

Running hudson with a port other than 8080 makes trouble (see stack trace below). Am I doing something wrong?

   Bernd

akquinet@akquinet-laptop:~$ java -jar hudson.war --httpPort 8180
[Winstone 2007/10/28 20:26:48] - Beginning extraction from war file
[Winstone 2007/10/28 20:26:49] - No webapp classes folder found - /tmp/winstone/hudson.war/WEB-INF/classes
hudson home directory: /home/akquinet/.hudson
[Winstone 2007/10/28 20:26:49] - Error starting listener instance
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 winstone.Launcher.spawnListener(Launcher.java:232)
        at winstone.Launcher.<init>(Launcher.java:201)
        at winstone.Launcher.main(Launcher.java:391)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at Main.main(Main.java:50)
Caused by: java.lang.NumberFormatException: For input string: "true"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:447)
        at java.lang.Integer.parseInt(Integer.java:497)
        at winstone.HttpListener.<init>(HttpListener.java:55)
        ... 12 more

28.10.2007 20:26:49 hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 34377
[Winstone 2007/10/28 20:26:49] - AJP13 Listener started: port=8009
[Winstone 2007/10/28 20:26:49] - Winstone Servlet Engine v0.9.9 running: controlPort=disabled
28.10.2007 20:26:49 hudson.model.Hudson load
INFO: Took 54 ms to load
Reply | Threaded
Open this post in threaded view
|

Re: Problem running Hudson on port other than 8080

Bernd Schiffer
Oups, stupid me, I should read the --help instructions more carefully: forgot the equal sign. Sorry :-)

Bernd Schiffer wrote
Hi.

Running hudson with a port other than 8080 makes trouble (see stack trace below). Am I doing something wrong?

   Bernd

akquinet@akquinet-laptop:~$ java -jar hudson.war --httpPort 8180
[Winstone 2007/10/28 20:26:48] - Beginning extraction from war file
[Winstone 2007/10/28 20:26:49] - No webapp classes folder found - /tmp/winstone/hudson.war/WEB-INF/classes
hudson home directory: /home/akquinet/.hudson
[Winstone 2007/10/28 20:26:49] - Error starting listener instance
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 winstone.Launcher.spawnListener(Launcher.java:232)
        at winstone.Launcher.<init>(Launcher.java:201)
        at winstone.Launcher.main(Launcher.java:391)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at Main.main(Main.java:50)
Caused by: java.lang.NumberFormatException: For input string: "true"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:447)
        at java.lang.Integer.parseInt(Integer.java:497)
        at winstone.HttpListener.<init>(HttpListener.java:55)
        ... 12 more

28.10.2007 20:26:49 hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 34377
[Winstone 2007/10/28 20:26:49] - AJP13 Listener started: port=8009
[Winstone 2007/10/28 20:26:49] - Winstone Servlet Engine v0.9.9 running: controlPort=disabled
28.10.2007 20:26:49 hudson.model.Hudson load
INFO: Took 54 ms to load
Reply | Threaded
Open this post in threaded view
|

Re: Problem running Hudson on port other than 8080

Kohsuke Kawaguchi
Administrator
In reply to this post by Bernd Schiffer

Winstone really doesn't seem to do any error check on the command line
arguments, which wastes people's time unnecessarily.

I filed
http://sourceforge.net/tracker/index.php?func=detail&aid=1821821&group_id=98922&atid=622497 
for this.


Bernd Schiffer wrote:

> Hi.
>
> Running hudson with a port other than 8080 makes trouble (see stack trace
> below). Am I doing something wrong?
>
>    Bernd
>
> akquinet@akquinet-laptop:~$ java -jar hudson.war --httpPort 8180
> [Winstone 2007/10/28 20:26:48] - Beginning extraction from war file
> [Winstone 2007/10/28 20:26:49] - No webapp classes folder found -
> /tmp/winstone/hudson.war/WEB-INF/classes
> hudson home directory: /home/akquinet/.hudson
> [Winstone 2007/10/28 20:26:49] - Error starting listener instance
> 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 winstone.Launcher.spawnListener(Launcher.java:232)
>         at winstone.Launcher.<init>(Launcher.java:201)
>         at winstone.Launcher.main(Launcher.java:391)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at Main.main(Main.java:50)
> Caused by: java.lang.NumberFormatException: For input string: "true"
>         at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:447)
>         at java.lang.Integer.parseInt(Integer.java:497)
>         at winstone.HttpListener.<init>(HttpListener.java:55)
>         ... 12 more
>
> 28.10.2007 20:26:49 hudson.TcpSlaveAgentListener <init>
> INFO: JNLP slave agent listener started on TCP port 34377
> [Winstone 2007/10/28 20:26:49] - AJP13 Listener started: port=8009
> [Winstone 2007/10/28 20:26:49] - Winstone Servlet Engine v0.9.9 running:
> controlPort=disabled
> 28.10.2007 20:26:49 hudson.model.Hudson load
> INFO: Took 54 ms to load
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment