• Low

      I've seen a few people asking for a port of the old jmx-console to AS7, for monitoring purposes, until equivalent functionality is available through the new GWT-based console.

      I've ported the old console in this branch:
      https://github.com/dandreadis/jboss-as/commits/jmx-console

      It only includes a new top-level directory 'jmx-console'. The directory is not build by default, and when you build it manually it does not alter the server configuration in any way, you need to manually copy the resulting target/jboss-as-jmx-console-VERSION.war to the server deployment directory (and rename it to jmx-console.war)

      If there is interest, it could be included in the AS7 distro in some top level 'legacy' directory so it is not deployed by default?

      The resulting .war is attached on this JIRA, in case someone wants to use it. It work just as well on AS 7.0.2 and the latest AS 7.1.x development branch.

            [WFLY-1197] Port the legacy jmx-console to AS7

            The implementation might be found here: https://github.com/wildfly-extras/jmx-console

            Sebastian Łaskawiec (Inactive) added a comment - The implementation might be found here: https://github.com/wildfly-extras/jmx-console

            slaskawi@redhat.com Checked. It works well.

            Maxim Malygin (Inactive) added a comment - slaskawi@redhat.com Checked. It works well.

            simax80 Thanks for your suggestions! I implemented it a bit differently: https://github.com/altanis/wildfly-jmx-console/commit/beb88858560472a637ca8f5cc3d4c471b4749ce4

            Could you please check if it's working? For some reason I can't reproduce it on my machine.

            Sebastian Łaskawiec (Inactive) added a comment - simax80 Thanks for your suggestions! I implemented it a bit differently: https://github.com/altanis/wildfly-jmx-console/commit/beb88858560472a637ca8f5cc3d4c471b4749ce4 Could you please check if it's working? For some reason I can't reproduce it on my machine.

            simax80 slaskawi@redhat.com Maxim, your versions works fine. Thanks

            Rico Neubauer (Inactive) added a comment - simax80 slaskawi@redhat.com Maxim, your versions works fine. Thanks

            Maxim Malygin (Inactive) added a comment - - edited

            It seems I have found workaround for exception "IllegalStateException: JBAS019905: Should not get called".
            You need to exclude JMX domain "jboss.jsr77" from list of mbeans:

            --- a/src/main/java/org/wildfly/jmx/adaptor/control/Server.java
            +++ b/src/main/java/org/wildfly/jmx/adaptor/control/Server.java
            @@ -71,6 +71,9 @@ public class Server {
                         Iterator objectNamesIter = objectNames.iterator();
                         while (objectNamesIter.hasNext()) {
                             ObjectName name = (ObjectName) objectNamesIter.next();
            +                if ("jboss.jsr77".equals(name.getDomain())) {
            +                       continue;
            +                }
                             MBeanInfo info = server.getMBeanInfo(name);
                             String domainName = name.getDomain();
                             MBeanData mbeanData = new MBeanData(name, info);
            

            Or just to build the console from https://github.com/mmalygin/wildfly-jmx-console

            Maxim Malygin (Inactive) added a comment - - edited It seems I have found workaround for exception "IllegalStateException: JBAS019905: Should not get called". You need to exclude JMX domain "jboss.jsr77" from list of mbeans: --- a/src/main/java/org/wildfly/jmx/adaptor/control/Server.java +++ b/src/main/java/org/wildfly/jmx/adaptor/control/Server.java @@ -71,6 +71,9 @@ public class Server { Iterator objectNamesIter = objectNames.iterator(); while (objectNamesIter.hasNext()) { ObjectName name = (ObjectName) objectNamesIter.next(); + if ("jboss.jsr77".equals(name.getDomain())) { + continue; + } MBeanInfo info = server.getMBeanInfo(name); String domainName = name.getDomain(); MBeanData mbeanData = new MBeanData(name, info); Or just to build the console from https://github.com/mmalygin/wildfly-jmx-console

            I see the same exception "Should not get called"

            Maxim Malygin (Inactive) added a comment - I see the same exception "Should not get called"

            slaskawi@redhat.com unfortunately the same issue - IllegalStateException: JBAS019905: Should not get called

            Rico Neubauer (Inactive) added a comment - slaskawi@redhat.com unfortunately the same issue - IllegalStateException: JBAS019905: Should not get called

            Hi MrEasy, I created separate repo here: https://github.com/altanis/wildfly-jmx-console. There was also a small bug regarding to escaping percent character. I get it working on fresh installation of JBoss 7.1.1. If you still encounter these problems, please let me know.

            Sebastian Łaskawiec (Inactive) added a comment - Hi MrEasy , I created separate repo here: https://github.com/altanis/wildfly-jmx-console . There was also a small bug regarding to escaping percent character. I get it working on fresh installation of JBoss 7.1.1. If you still encounter these problems, please let me know.

            slaskawi@redhat.com tried your version on JBoss 7.1.1, however results in the same "JBAS019905: Should not get called", that is posted above.

            Rico Neubauer (Inactive) added a comment - slaskawi@redhat.com tried your version on JBoss 7.1.1, however results in the same "JBAS019905: Should not get called", that is posted above.

            Rebased Darren's code and detached from parent: https://github.com/altanis/wildfly/commits/jmx-console-ported

            Sebastian Łaskawiec (Inactive) added a comment - Rebased Darren's code and detached from parent: https://github.com/altanis/wildfly/commits/jmx-console-ported

              slaskawi@redhat.com Sebastian Łaskawiec (Inactive)
              dandread1@redhat.com Dimitrios Andreadis
              Votes:
              9 Vote for this issue
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: