[OmniOS-discuss] Jenkins CI on OmniOS? (NPE)
Frédéric Alix
admdwrf at gmail.com
Fri Oct 3 14:14:59 UTC 2014
It run well with pkgsrc.
It contains all dependencies.
curl -s http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2014Q2-x86_64.tar.gz
| gzcat | (cd /; sudo tar -xpf -)
PATH="/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin:/opt/local/sbin"
pkgin install openjdk7-1.7.60nb3
/opt/local/java/openjdk7/bin/java -jar jenkins.war
fralix at zdoctcmsfrb1:~/app2$ /opt/local/java/openjdk7/bin/java -jar jenkins.war
Running from: /export/home/fralix/app2/jenkins.war
webroot: $user.home/.jenkins
Oct 03, 2014 12:45:25 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Oct 03, 2014 12:45:25 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Oct 03, 2014 12:45:27 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /export/home/fralix/.jenkins found at:
$user.home/.jenkins
Oct 03, 2014 12:45:28 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector at 0.0.0.0:8080
Oct 03, 2014 12:45:28 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Oct 03, 2014 12:45:28 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 03, 2014 12:45:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 03, 2014 12:45:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 03, 2014 12:45:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 03, 2014 12:45:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 03, 2014 12:45:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 03, 2014 12:45:51 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 59567
Oct 03, 2014 12:45:51 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 03, 2014 12:45:51 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
On Oct 3, 2014, at 4:01 AM, Ben Summers <ben at fluffy.co.uk
<http://lists.omniti.com/mailman/listinfo/omnios-discuss>> wrote:
> >* OmniOS is a server OS, and doesn't include X or any of the related UI components.
*
I don’t believe SmartOS ships with any of that stuff, either, but it
worked over there.
> >* Try adding
*> >* -Djava.awt.headless=true
*> >* to the java command line, which may stop it attempting to load
these things. Although if Jenkins actually requires them, it will just
change the exception.
*
jenkins at jenkins
<http://lists.omniti.com/mailman/listinfo/omnios-discuss>:/export/home/jenkins$
java -Djava.awt.headless=true -jar jenkins.war
Running from: /export/home/jenkins/jenkins.war
webroot: $user.home/.jenkins
Oct 03, 2014 11:48:35 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Oct 03, 2014 11:48:35 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Oct 03, 2014 11:48:37 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /export/home/jenkins/.jenkins found at:
$user.home/.jenkins
Oct 03, 2014 11:48:38 AM hudson.util.BootFailure publish
SEVERE: Failed to initialize Jenkins
hudson.util.AWTProblem: java.lang.NullPointerException
at hudson.WebAppMain.contextInitialized(WebAppMain.java:182)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
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:606)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Caused by: java.lang.NullPointerException
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
at sun.font.SunFontManager$2.run(SunFontManager.java:433)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at java.awt.Font.getFont2D(Font.java:490)
at java.awt.Font.getFamily(Font.java:1219)
at java.awt.Font.getFamily_NoClientCode(Font.java:1193)
at java.awt.Font.getFamily(Font.java:1185)
at java.awt.Font.toString(Font.java:1682)
at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:181)
... 19 more
Oct 03, 2014 11:48:38 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Failed startup of context
w.{,file:/export/home/jenkins/.jenkins/war/},/export/home/jenkins/.jenkins/war
java.lang.NullPointerException
at jenkins.util.groovy.GroovyHookScript.run(GroovyHookScript.java:63)
at hudson.util.BootFailure.publish(BootFailure.java:43)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:244)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
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:606)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Oct 03, 2014 11:48:38 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector at 0.0.0.0
<http://lists.omniti.com/mailman/listinfo/omnios-discuss>:8080
Oct 03, 2014 11:48:38 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20141003/8d1d70b2/attachment.html>
More information about the OmniOS-discuss
mailing list