hyperic / hq

Hyperic open source
107 stars 91 forks source link

[jboss-plugin] Detection fails if JBoss module path has multiple entries #3

Open hcgpalm opened 9 years ago

hcgpalm commented 9 years ago

org.hyperic.hq.plugin.jboss7.JBossDetectorBase.getVersion() does not handle a JBoss module path with multiple components.

Results in the following debug log output:

07-11-2014 10:34:18,003 CET DEBUG [Thread-4] [JBossStandaloneDetector@74] [getServerResources] pids.length:1
07-11-2014 10:34:18,006 CET DEBUG [Thread-4] [JBossStandaloneDetector@249] [getVersion] serverModule=/usr/share/jbossas/modules:/opt/data/jbossas/modules/org/jboss/as/server/main
07-11-2014 10:34:18,007 CET DEBUG [Thread-4] [JBossStandaloneDetector@250] [getVersion] 'jboss-as-server.*.jar' not found.
07-11-2014 10:34:18,007 CET DEBUG [Thread-4] [JBossStandaloneDetector@78] [getServerResources] pid='17752' version='not found'
laullon commented 9 years ago

Hi,

JBoss version ?

hcgpalm commented 9 years ago

Hi! JBoss version is Red Hat JBoss EAP 7.4.1-2.