gpt4 book ai didi

java - Jenkins 在启动时失败并显示 "SEVERE: Error during context startup for webapp webapp"

转载 作者:行者123 更新时间:2023-12-01 14:26:13 32 4
gpt4 key购买 nike

我在 Ubuntu 12.04 中安装了 Jenkins。我将端口更改为8888。

root@kandabap-ThinkCentre-M91p:/etc/default# dpkg -l | grep jenkins
ii jenkins 1.518 Continuous integration system written in Java

root@kandabap-ThinkCentre-M91p:/etc/default# java -version
java version "1.5.0"
gij (GNU libgcj) version 4.6.3

当我启动 Jenkins 时,它会保持 Activity 状态一段时间,然后就死掉了。

日志显示:

 18/06/2013 4:08:39 p.m. winstone.Logger logInternal  
SEVERE: Error during context startup for webapp webapp
java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.12)
at hudson.WebAppMain.installLogger(WebAppMain.java:253)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:104)
at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:876)
at winstone.HostConfiguration.initWebApp(HostConfiguration.java:129)
at winstone.HostConfiguration.<init>(HostConfiguration.java:71)
at winstone.HostGroup.initHost(HostGroup.java:87)
at winstone.HostGroup.<init>(HostGroup.java:47)
at winstone.Launcher.<init>(Launcher.java:177)
at winstone.Launcher.main(Launcher.java:384)
at java.lang.reflect.Method.invoke(libgcj.so.12)
at Main._main(Main.java:288)
at Main.main(Main.java:98)
Caused by: java.lang.NullPointerException
at com.thoughtworks.xstream.core.JVM.isOpenJDK(JVM.java:128)
at com.thoughtworks.xstream.core.JVM.canUseSun14ReflectionProvider(JVM.java:279)
at com.thoughtworks.xstream.core.JVM.bestReflectionProvider(JVM.java:254)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:438)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:381)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:336)

如何让 Jenkins 在我的机器上启动并运行?

最佳答案

SEVERE: Failed to initialize Jenkins 相同我想。

“根据初步 react ,这是使用‘gcj’引起的。解决方案是使用OpenJDK或Oracle JDK。”

关于java - Jenkins 在启动时失败并显示 "SEVERE: Error during context startup for webapp webapp",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17162276/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com