Jenkins 服务器返回 500 错误

Jenkins 服务器返回 500 错误

刚刚在 debian 64 位 lenny 发行版上安装了 jenkins,我启动了服务器,但是当我连接到它时出现错误:

Status Code: 500
Exception: The error below occurred during context initialisation, so no further requests can be processed:

java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.90)
   at hudson.WebAppMain.installLogger(WebAppMain.java:252)
   at hudson.WebAppMain.contextInitialized(WebAppMain.java:106)
   at winstone.WebAppConfiguration.(WebAppConfiguration.java:889)
   at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
   at winstone.HostConfiguration.(HostConfiguration.java:73)
   at winstone.HostGroup.initHost(HostGroup.java:85)
   at winstone.HostGroup.(HostGroup.java:45)
   at winstone.Launcher.(Launcher.java:196)
   at winstone.Launcher.main(Launcher.java:391)
   at java.lang.reflect.Method.invoke(libgcj.so.90)
   at Main._main(Main.java:212)
   at Main.main(Main.java:61)
Caused by: com.thoughtworks.xstream.XStream$InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
   at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:735)
   at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:699)
   at com.thoughtworks.xstream.XStream.(XStream.java:445)
   at com.thoughtworks.xstream.XStream.(XStream.java:385)
   at com.thoughtworks.xstream.XStream.(XStream.java:323)
   at hudson.util.XStream2.(XStream2.java:62)
   at hudson.model.Hudson.(Hudson.java:3656)
   at java.lang.Class.initializeClass(libgcj.so.90)
   ...12 more
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Constructor.newInstance(libgcj.so.90)
   at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:728)
   ...19 more
Caused by: javax.xml.datatype.DatatypeConfigurationException: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.90)
   at com.thoughtworks.xstream.converters.extended.DurationConverter.(DurationConverter.java:33)
   at java.lang.reflect.Constructor.newInstance(libgcj.so.90)
   ...20 more
Caused by: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at java.lang.Class.forName(libgcj.so.90)
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.90)
   ...22 more


Stacktrace:

java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.90)
   at hudson.WebAppMain.installLogger(WebAppMain.java:252)
   at hudson.WebAppMain.contextInitialized(WebAppMain.java:106)
   at winstone.WebAppConfiguration.(WebAppConfiguration.java:889)
   at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
   at winstone.HostConfiguration.(HostConfiguration.java:73)
   at winstone.HostGroup.initHost(HostGroup.java:85)
   at winstone.HostGroup.(HostGroup.java:45)
   at winstone.Launcher.(Launcher.java:196)
   at winstone.Launcher.main(Launcher.java:391)
   at java.lang.reflect.Method.invoke(libgcj.so.90)
   at Main._main(Main.java:212)
   at Main.main(Main.java:61)
Caused by: com.thoughtworks.xstream.XStream$InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
   at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:735)
   at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:699)
   at com.thoughtworks.xstream.XStream.(XStream.java:445)
   at com.thoughtworks.xstream.XStream.(XStream.java:385)
   at com.thoughtworks.xstream.XStream.(XStream.java:323)
   at hudson.util.XStream2.(XStream2.java:62)
   at hudson.model.Hudson.(Hudson.java:3656)
   at java.lang.Class.initializeClass(libgcj.so.90)
   ...12 more
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Constructor.newInstance(libgcj.so.90)
   at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:728)
   ...19 more
Caused by: javax.xml.datatype.DatatypeConfigurationException: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.90)
   at com.thoughtworks.xstream.converters.extended.DurationConverter.(DurationConverter.java:33)
   at java.lang.reflect.Constructor.newInstance(libgcj.so.90)
   ...20 more
Caused by: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at java.lang.Class.forName(libgcj.so.90)
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.90)
   ...22 more


Generated by Winstone Servlet Engine v0.9.10 at Wed Mar 23 14:32:32 GMT+01:00 2011

关于如何解决这个问题有什么建议吗?

谨致问候,FR

答案1

我确认

aptitude 安装 openjdk-6-jdk

解决了我的问题,剩下的问题是与詹金斯的 apache 代理有关。

使用 lynx localhost:8080 我看到 jenkins 正在工作

感谢您的帮助

相关内容