Red Hat Bugzilla – Bug 811279
importing JBossAS 5 server failed to import JVM child properly
Last modified: 2012-04-10 16:44:52 EDT
Created attachment 576496 [details]
screen snapshot of down jvm child resource
I have a JBoss EAP 5.1 server running (it is secured with the user/pass of admin/admin).
I see it in my discovery queue, so I import it.
Everything gets into inventory and and everything is green (I checked the plugin config and it looks like the plugin assumed user/pass is admin/admin as a default, which is why it immediately came in green).
HOWEVER, the child JVM resource is red. When I look at its plugin configuration, its type is "Java SE 5", not "parent" which is what I think it should be. For example, if I import the RHQ Server (which is really just a JBossAS 4 server), the JVM child comes in green and its type is "parent", NOT Java SE 5, which is what I see the JVM child under my JBoss EAP 5 server).
See attached screen shot.
note: we should check if this same thing is broken when importing JBossAS 4 servers. I only tried importing a RHQ Server - which did work, but we should try with a standalone "normal" JBossAS 4 server - not the "special" RHQ Server resource.
I just checked and this happens on older RHQ versions as well - so nothing recently broke this - it's been broken.
I see the problem with: RHQ 4.3.0 (build Number: a9b2a27)
note: if I go to the JVM child resource's Connection Properties, set Type to "Parent" and unset Connector Address, it goes green and the rest of the JVM's own child resources get discovered, committed to inventory and also go green.
OK, after digging into this deeper, I think this can be closed as NOTABUG.
Here's the thing - when I started my EAP instance, I had enabled jmx remoting (that is, I had passed in several of the jmxremote... system properties when starting it up).
That means the EmbeddedJMXServerDiscoveryComponent detected this as a remoted JMX server. There is code that looks to see if it is remoted - and if it is, it sets up the JVM resource with plugin config settings to access it. I then completed the config in the GUI by setting the credentials for my remoted JMX user/pass and it went green.
If it is NOT remoted, it simply sets the plugin configuration "Type" setting to "Parent" and assumes the parent component will handle accessing the MBeanServer.