当前位置:   article > 正文

初始化java失败_java – 严重:初始化Jenkins失败

failed to initialize jenkins

我已经在我的

Linux上安装了jenkins但是当我尝试启动服务器时它会出现以下错误,如下图所示. (请注意,我也使用–httpport更改了端口.)

我的电脑上安装了最新版本的java.

任何人都能告诉我是什么原因造成了以下问题吗?

pcadmin@IMSEZ-D0137:~/Desktop$java -jar jenkins.war --httpPort=9000

Running from: jenkins.war

webroot: $user.home/.jenkins

05-Feb-2013 8:04:10 p.m. winstone.Logger logInternal

INFO: Beginning extraction from war file

05-Feb-2013 8:04:11 p.m. hudson.WebAppMain contextInitialized

SEVERE: Failed to initialize Jenkins

java.lang.ExceptionInInitializerError

at java.lang.Class.initializeClass(libgcj.so.10)

at hudson.WebAppMain.installLogger(WebAppMain.java:253)

at hudson.WebAppMain.contextInitialized(WebAppMain.java:104)

at winstone.WebAppConfiguration.(WebAppConfiguration.java:876)

at winstone.HostConfiguration.initWebApp(HostConfiguration.java:129)

at winstone.HostConfiguration.(HostConfiguration.java:71)

at winstone.HostGroup.initHost(HostGroup.java:87)

at winstone.HostGroup.(HostGroup.java:47)

at winstone.Launcher.(Launcher.java:177)

at winstone.Launcher.main(Launcher.java:384)

at java.lang.reflect.Method.invoke(libgcj.so.10)

at Main._main(Main.java:273)

at Main.main(Main.java:98)

Caused by: java.lang.NullPointerException

at com.thoughtworks.xstream.core.JVM.isOpenJDK(JVM.java:72)

at com.thoughtworks.xstream.core.JVM.canUseSun14ReflectionProvider(JVM.java:198)

at com.thoughtworks.xstream.core.JVM.bestReflectionProvider(JVM.java:175)

at com.thoughtworks.xstream.XStream.(XStream.java:431)

at com.thoughtworks.xstream.XStream.(XStream.java:385)

at com.thoughtworks.xstream.XStream.(XStream.java:323)

at hudson.util.XStream2.(XStream2.java:78)

at jenkins.model.Jenkins.(Jenkins.java:3763)

at java.lang.Class.initializeClass(libgcj.so.10)

...12 more

05-Feb-2013 8:04:11 p.m. winstone.Logger logInternal

SEVERE: Error during context startup for webapp webapp

java.lang.ExceptionInInitializerError

at java.lang.Class.initializeClass(libgcj.so.10)

at hudson.WebAppMain.installLogger(WebAppMain.java:253)

at hudson.WebAppMain.contextInitialized(WebAppMain.java:104)

at winstone.WebAppConfiguration.(WebAppConfiguration.java:876)

at winstone.HostConfiguration.initWebApp(HostConfiguration.java:129)

at winstone.HostConfiguration.(HostConfiguration.java:71)

at winstone.HostGroup.initHost(HostGroup.java:87)

at winstone.HostGroup.(HostGroup.java:47)

at winstone.Launcher.(Launcher.java:177)

at winstone.Launcher.main(Launcher.java:384)

at java.lang.reflect.Method.invoke(libgcj.so.10)

at Main._main(Main.java:273)

at Main.main(Main.java:98)

Caused by: java.lang.NullPointerException

at com.thoughtworks.xstream.core.JVM.isOpenJDK(JVM.java:72)

at com.thoughtworks.xstream.core.JVM.canUseSun14ReflectionProvider(JVM.java:198)

at com.thoughtworks.xstream.core.JVM.bestReflectionProvider(JVM.java:175)

at com.thoughtworks.xstream.XStream.(XStream.java:431)

at com.thoughtworks.xstream.XStream.(XStream.java:385)

at com.thoughtworks.xstream.XStream.(XStream.java:323)

at hudson.util.XStream2.(XStream2.java:78)

at jenkins.model.Jenkins.(Jenkins.java:3763)

at java.lang.Class.initializeClass(libgcj.so.10)

...12 more

05-Feb-2013 8:04:16 p.m. winstone.Logger logInternal

INFO: HTTP Listener started: port=9000

05-Feb-2013 8:04:16 p.m. winstone.Logger logInternal

INFO: AJP13 Listener started: port=8009

05-Feb-2013 8:04:16 p.m. winstone.Logger logInternal

SEVERE: Error during servlet context shutdown

java.lang.NoClassDefFoundError: jenkins.model.Jenkins

at java.lang.Class.initializeClass(libgcj.so.10)

at hudson.WebAppMain.contextDestroyed(WebAppMain.java:336)

at winstone.WebAppConfiguration.destroy(WebAppConfiguration.java:1167)

at winstone.HostConfiguration.destroyWebApp(HostConfiguration.java:148)

at winstone.HostConfiguration.destroy(HostConfiguration.java:156)

at winstone.HostGroup.destroy(HostGroup.java:77)

at winstone.Launcher.shutdown(Launcher.java:337)

at winstone.Launcher.(Launcher.java:199)

at winstone.Launcher.main(Launcher.java:384)

at java.lang.reflect.Method.invoke(libgcj.so.10)

at Main._main(Main.java:273)

at Main.main(Main.java:98)

05-Feb-2013 8:04:16 p.m. winstone.Logger logInternal

INFO: Winstone shutdown successfully

05-Feb-2013 8:04:16 p.m. winstone.Logger logInternal

SEVERE: Container startup failed

java.io.IOException: Failed to start a listener: winstone.ssl.HttpsListener

at winstone.Launcher.spawnListener(Launcher.java:229)

at winstone.Launcher.(Launcher.java:185)

at winstone.Launcher.main(Launcher.java:384)

at java.lang.reflect.Method.invoke(libgcj.so.10)

at Main._main(Main.java:273)

at Main.main(Main.java:98)

Caused by: java.lang.NoClassDefFoundError: winstone.ssl.HttpsListener

at java.lang.Class.initializeClass(libgcj.so.10)

at java.lang.Class.forName(libgcj.so.10)

at java.lang.Class.forName(libgcj.so.10)

at winstone.Launcher.spawnListener(Launcher.java:213)

...5 more

Caused by: java.lang.ClassNotFoundException: sun.security.util.DerValue not found in java.net.URLClassLoader{urls=[file:/tmp/winstonev2gtdejar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:jenkins.war], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}

at java.net.URLClassLoader.findClass(libgcj.so.10)

at java.lang.ClassLoader.loadClass(libgcj.so.10)

at java.lang.ClassLoader.loadClass(libgcj.so.10)

at java.lang.Class.initializeClass(libgcj.so.10)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/507586
推荐阅读
相关标签
  

闽ICP备14008679号