Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-1449

The Jolokia Hello World example described in documentation stopped working

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • AMQ 7.2.0.GA
    • AMQ 7.1.0.GA
    • console
    • Documentation (Ref Guide, User Guide, etc.)
    • AMQ Broker 1823

      Documentation says at https://access.redhat.com/documentation/en-us/red_hat_jboss_amq/7.1/html/using_amq_broker/management#managing_the_broker_using_jmx

      === Exposing JMX Using Jolokia
      
      [...]
      
      As a simple example, direct your web browser to http://localhost:8161/jolokia/read/org.apache.activemq.artemis:module=Core,type=Server/Version after starting a broker instance to query the broker's version.
      

      The URL does not work. (I get 404 error.) If I instead use

      http://localhost:8161/console/jolokia/read/org.apache.activemq.artemis:module=Core,type=Server/Version

      that does not work either. (I get 403 error.)

      If I do

      http://admin:admin@localhost:8161/console/jolokia/read/org.apache.activemq.artemis:module=Core,type=Server/Version

      then in Firefox I get dialog saying "You are about to log in to the site “localhost” with the username “admin”, but the website does not require authentication. This may be an attempt to trick you. Is “localhost” the site you want to visit?" and I again end up with 403.

      Finally, If I do,

      curl http://admin:admin@localhost:8161/console/jolokia/read/org.apache.activemq.artemis:module=Core,type=Server/Version

      I get

      {"request":{"mbean":"org.apache.activemq.artemis:module=Core,type=Server","attribute":"Version","type":"read"},"error_type":"java.lang.Exception","error":"java.lang.Exception : Reading attribute Version is forbidden for MBean org.apache.activemq.artemis:module=Core,type=Server","status":403}
      

            behardesty Ben Hardesty
            jdanek@redhat.com Jiri Daněk
            Sean Davey Sean Davey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: