无法为Jenkins配置JBoss Management Plugin

时间:2015-06-29 06:41:44

标签: jenkins jboss

Configuration of JBoss Management plugin.

您好

我尝试使用上面的细节为Jenkins配置JBoss Management Plugin。但是当我在工作中使用它时,它会给我以下错误。有什么输入吗?

错误记录

SHUTDOWN: Checking if server is running (max 20 seconds)...
FATAL: TRACE
java.lang.NoSuchFieldError: TRACE
    at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85)
    at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
    at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1310)
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1548)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at hudson.plugins.jboss.JMXUtils.getMBeanServer(JMXUtils.java:73)
    at hudson.plugins.jboss.JMXUtils.checkServerStatus(JMXUtils.java:151)
    at hudson.plugins.jboss.JBossBuilder.perform(JBossBuilder.java:106)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1744)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:374)
Finished: FAILURE 

错误在此处结束

1 个答案:

答案 0 :(得分:1)

这是因为您使用较旧版本的log4j(可能是1.2.9)升级到较新版本(1.2.14)的jenkins版本可以解决问题。这里有一个错误https://issues.jenkins-ci.org/browse/JENKINS-4433

为了快速解决:在你的filesytem中转到jenkins / war / WEB-INF / lib并将log4j.jar替换为它的新版本。 (1.2.14)为我工作。