JBoss 4.2 自动发现失败(NoClassDefFoundError)

JBoss 4.2 自动发现失败(NoClassDefFoundError)

我第一次尝试使用 Hyperic。我有一个基本的服务器和代理设置,并在 Redhat Linux 机器上工作。但是当自动发现器为 JBoss 4.2 运行时,我收到了此消息末尾的异常。

jboss.installpath在 中配置了设置agent.properties。当我使用级别日志记录启动代理时DEBUG,我看到从我配置的路径中包含了各种 JBoss jar。但我无法自动发现 JBoss,我继续收到相同的异常。任何关于如何修复此问题的想法都将不胜感激...

011-06-17 14:25:27,572 INFO  [Thread-2] [RuntimeAutodiscoverer] Running runtime autodiscovery for NetworkServer
2011-06-17 14:25:27,582 INFO  [Thread-2] [RuntimeAutodiscoverer] NetworkServer discovery took 0
2011-06-17 14:25:27,582 INFO  [Thread-2] [RuntimeAutodiscoverer] Running runtime autodiscovery for JBoss 4.2
2011-06-17 14:25:27,941 ERROR [Thread-2] [RuntimeAutodiscoverer] Unable to run autodiscoverer for plugin: JBoss 4.2 (consult product setup help): null
java.lang.NoClassDefFoundError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.jboss.invocation.MarshalledInvocation.<clinit>(MarshalledInvocation.java:68)
        at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:120)
        at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
        at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
        at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
        at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
        at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
        at $Proxy1.queryNames(Unknown Source)
        at org.hyperic.hq.plugin.jboss.JBossDetector.discoverServiceTypes(JBossDetector.java:368)
        at org.hyperic.hq.product.ServerDetector.discoverResources(ServerDetector.java:209)
        at org.hyperic.hq.autoinventory.agent.server.RuntimeAutodiscoverer.doRuntimeScan_internal(RuntimeAutodiscoverer.java:272)
        at org.hyperic.hq.autoinventory.agent.server.RuntimeAutodiscoverer.doRuntimeScan(RuntimeAutodiscoverer.java:205)
        at org.hyperic.hq.autoinventory.ScanManager.mainRunLoop(ScanManager.java:165)
        at org.hyperic.hq.autoinventory.ScanManager.access$000(ScanManager.java:41)
        at org.hyperic.hq.autoinventory.ScanManager$1.run(ScanManager.java:107)
2011-06-17 14:25:27,943 INFO  [Thread-2] [RuntimeAutodiscoverer] Running runtime autodiscovery for Net Services
2011-06-17 14:25:27,953 INFO  [Thread-2] [RuntimeAutodiscoverer] Net Services discovery took 0
2011-06-17 14:25:27,953 INFO  [Thread-2] [RuntimeAutodiscoverer] Running runtime autodiscovery for HQ Agent
2011-06-17 14:25:27,962 INFO  [Thread-2] [RuntimeAutodiscoverer] HQ Agent discovery took 0
2011-06-17 14:25:27,962 INFO  [Thread-2] [RuntimeAutodiscoverer] Running runtime autodiscovery for FileServer
2011-06-17 14:25:27,969 INFO  [Thread-2] [RuntimeAutodiscoverer] FileServer discovery took 0

答案1

将 JBoss 中的 jbossall-client.jar 放在 Hyperic Agent 的类路径中(即 Hyperice Agent 的相关库中)。

另请检查..

问题可能是由于 Hyperic-Agent 无法捕获 JBoss-Server,因为使用了反斜杠而不是普通斜杠。

jboss.installpath=e:\jboss-4.2.1.GA -> 不正确

jboss.installpath=e:/jboss-4.2.1.GA-> 确定

相关内容