> Can anyone tell me why changing HTTP_PORT in /etc/default/jenkins (on
> Ubuntu Lucid) causes this error on jenkins startup:
>
> Running from: /usr/share/jenkins/jenkins.war
> [Winstone 2011/06/28 17:11:16] - Container startup failed
> java.lang.NullPointerException
> at winstone.Launcher.<init>(Launcher.java:127)
> at winstone.Launcher.main(Launcher.java:391)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at Main._main(Main.java:248)
> at Main.main(Main.java:95)
I have a VM running Jenkins 1.418 on Debian x86_64. I've cloned this VM,
stopped Jenkins, changed HTTP_PORT in /etc/default/jenkins to 8081 and
started it again. Now Jenkins is responding on
http://192.168.122.31:8081/, so it works.
It's somewhat related to your setup.
--
Mykola
> What jre are you using?
root@vm11:~# java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
root@vm11:~# update-alternatives --display java
java - auto mode
link currently points to /usr/lib/jvm/java-6-openjdk/jre/bin/java
/usr/lib/jvm/java-6-openjdk/jre/bin/java - priority 1061
slave java.1.gz: /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz
Current 'best' version is '/usr/lib/jvm/java-6-openjdk/jre/bin/java'.
root@vm11:~# dpkg -S /usr/lib/jvm/java-6-openjdk/jre/bin/java
openjdk-6-jre-headless: /usr/lib/jvm/java-6-openjdk/jre/bin/java
root@vm11:~# apt-cache policy openjdk-6-jre-headless
openjdk-6-jre-headless:
Installed: 6b18-1.8.7-2~squeeze1
Candidate: 6b18-1.8.7-5
Version table:
6b18-1.8.7-5 0
500 http://192.168.122.1/ftp.uk.debian.org/debian/ unstable/main
amd64 Packages
500 http://192.168.122.1/ftp.uk.debian.org/debian/ testing/main
amd64 Packages
*** 6b18-1.8.7-2~squeeze1 0
500 http://192.168.122.1/ftp.uk.debian.org/debian/ squeeze/main
amd64 Packages
500 http://security.debian.org/ squeeze/updates/main amd64 Packages
100 /var/lib/dpkg/status
> I have a VM running Jenkins 1.418 on Debian x86_64. I've cloned this VM,
> stopped Jenkins, changed HTTP_PORT in /etc/default/jenkins to 8081 and
> started it again. Now Jenkins is responding on
> http://192.168.122.31:8081/, so it works.
--
Mykola