本文主要是介绍解决Hudson部署的错误,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
部署hudson到JBoss5.1下,出现severe日志如下:
22:04:16,219 SEVERE [ComputerSet] Failed to instanciate class hudson.node_monito
rs.DiskSpaceMonitor
java.lang.InstantiationException: hudson.node_monitors.DiskSpaceMonitor
at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at hudson.model.ComputerSet.createDefaultInstance(ComputerSet.java:381)
at hudson.model.ComputerSet.<clinit>(ComputerSet.java:369)
at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistic
s.java:214)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
22:04:16,219 SEVERE [ComputerSet] Failed to instanciate class hudson.node_monito
rs.TemporarySpaceMonitor
java.lang.InstantiationException: hudson.node_monitors.TemporarySpaceMonitor
at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at hudson.model.ComputerSet.createDefaultInstance(ComputerSet.java:381)
at hudson.model.ComputerSet.<clinit>(ComputerSet.java:369)
at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistic
s.java:214)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
解决方法:
修改USER_HOME的.hudson\nodeMonitors.xml
(windows下是C:\Users\XXX\.hudson)
添加如下内容:
<hudson.node__monitors.TemporarySpaceMonitor>
<ignored>false</ignored>
</hudson.node__monitors.TemporarySpaceMonitor>
<hudson.node__monitors.DiskSpaceMonitor>
<ignored>false</ignored>
</hudson.node__monitors.DiskSpaceMonitor>
然后重启JBoss。
原因及原理不明 - -!
参考文章:
[url]http://paste.lisp.org/display/92731[/url]
这篇关于解决Hudson部署的错误的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!