I am trying to download the whole sources involved in running and debugging JMX plugin in order to track down what is causing a null credential and password when I manually add a JMX connection to a WebSphere instance.
I've already downloaded RHQ and Jopr source codes but there is one point that I could not figure out for now, inside rhq-jmx-plugin-1.1.0 on jopr-server-2.1.0-ga zip there is a org-mc4j-ems-1.2.5.jar and also after checking out RHQ and Jopr trunk I saw the following version:
./rhq/jopr/.classpath: <classpathentry exported="true" kind="var" path="M2_REPO /mc4j/org-mc4j-ems/1.2.6/org-mc4j-ems-1.2.6.jar"/>, the point is I could not find either version of EMS on https://mc4j.svn.sourceforge.net/svnroot/mc4j/tags/ is there any other repository for EMS source code?
I am willing to check who is instantiating ConnectionSettings class in order to track down which code is not properly setting connection credentials and password.
I've left a message at MC4J forum but got no reply, EMS bug tracker is closed for developers. Do you suggest me any other way of submitting my changes to WebSphereConnectionProvider in order to get it incorporated? The changes were rather small and have enabled the usage on secured WebSphere instances.
Sure, create an issue in JOPR JIRA (https://jira.jboss.org/jira/browse/JOPR) and attach your EMS patch to it. Someone will review it when we have a chance and apply it to EMS if it looks good.
Done, both on MC4J as on Jopr:
MC4J (as I found nowhere to attach file, it is posted on a message):
Tested it here, no need for IBM JVM. It is only necessary to have a few WebSphere JARS on Agent lib directory. One improvement is to use the new facility that mazz has just provided on newer versions of RHQ. One problem I had, the RHQ version I checked out somehow does not install. It seems to install but gets redirected back to installation page over and over again.
So in order to test this patch, I've replaced the EMS lib and the JMXServerComponent.class inside jmx1.1.0 plugin and tested it on jopr 2.1.0.