VMware Cloud Community
tmaus
Contributor
Contributor

Appserver Dynamic properties

We are running a jboss 4.2.0 appserver in a clusterable multi instance environment and trying to use hyperic to monitor it.

Jboss default configuration file is the conf/jboss-service.xml which covers a lot of settings.
Nearly all of them has been replaced by tokens and their specific values are read during bootstrap using the -P option.

I started the hyperic agent and it produced this logging information:

2007-10-30 13:53:41,976 DEBUG [JBossDetector] /home/jboss/server_4.2.0_eap/configurations/cluster-ejb is not a JBoss 3.2 Linux
2007-10-30 13:53:41,976 DEBUG [AutoScan] Running AutoServerDetector for: JBoss 4.0
2007-10-30 13:53:41,977 DEBUG [JBossDetector] /home/jboss/server_4.2.0_eap/configurations/cluster-ejb is not a JBoss 4.0 Linux
2007-10-30 13:53:41,977 DEBUG [AutoScan] Running AutoServerDetector for: JBoss 4.2
2007-10-30 13:53:41,978 DEBUG [JBossDetector] discovered JBoss server [cluster-ejb] in /home/jboss/server_4.2.0_eap/configurations/cluster-ejb
2007-10-30 13:53:41,978 DEBUG [JBossConfig] Unchanged: /home/jboss/server_4.2.0_eap/configurations/cluster-ejb/conf/jboss-service.xml
2007-10-30 13:53:41,978 ERROR [AutoScan] AutoScan failed for JBoss 4.2
java.lang.NumberFormatException: For input string: "${jboss.jndi.port}"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:403)
at java.lang.Long.parseLong(Long.java:461)
at org.hyperic.hq.product.ServerDetector.getListenAddress(ServerDetector.java:584)
at org.hyperic.hq.plugin.jboss.JBossDetector.getJnpURL(JBossDetector.java:434)
at org.hyperic.hq.plugin.jboss.JBossDetector.getServerList(JBossDetector.java:492)
at org.hyperic.hq.plugin.jboss.JBossDetector.getServerResources(JBossDetector.java:406)
at org.hyperic.hq.autoinventory.scanimpl.NullScan.scan(NullScan.java:83)
at org.hyperic.hq.autoinventory.Scanner.start(Scanner.java:196)
at org.hyperic.hq.autoinventory.ScanManager.mainRunLoop(ScanManager.java:141)
at org.hyperic.hq.autoinventory.ScanManager.access$000(ScanManager.java:41)
at org.hyperic.hq.autoinventory.ScanManager$1.run(ScanManager.java:107)
2007-10-30 13:53:41,979 DEBUG [AutoScan] Running AutoServerDetector for: Jetty 6.x

Your agent properly discovers jboss 4.2

To me it looks like as it cannot resolve the provided jboss.jndi.port from the used property file.

The appserver itself is running smoothly with all given properties.

Any idea ??
0 Kudos
0 Replies