JBoss 4.2自动发现失败(NoClassDefFoundError)

我正在第一次尝试Hyperic。 我有一个基本的服务器和代理安装程序,并在Redhat Linux机器上工作。 但是,当autodiscoverer运行JBoss 4.2的时候,我得到了这个消息结尾处的exception。

我在agent.propertiesconfiguration了jboss.installpath设置。 当我用DEBUG级别的日志logging启动代理时,我看到了从我configuration的path中包含的各种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 

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

另外检查..

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

jboss.installpath = e:\ jboss-4.2.1.GA – >不行

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