Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4729

Accessing Jolokia rest api only worked after login to hawtio first

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Karaf
    • None
    • % %
    • Hide

      Restart JBoss Fuse/A-MQ 6.2.1 container, and then try to access Jolokia rest api either with the command:
      curl -u admin:admin http://localhost:8181/hawtio/jolokia/
      or from browser with URL:
      http://localhost:8181/hawtio/jolokia/

      None of above will work. Then try to login to the container first:
      http://localhost:8181/hawtio/login
      then try above "curl" command or the URL from browser to access jolokia rest api again.

      Show
      Restart JBoss Fuse/A-MQ 6.2.1 container, and then try to access Jolokia rest api either with the command: curl -u admin:admin http://localhost:8181/hawtio/jolokia/ or from browser with URL: http://localhost:8181/hawtio/jolokia/ None of above will work. Then try to login to the container first: http://localhost:8181/hawtio/login then try above "curl" command or the URL from browser to access jolokia rest api again.

      After start/restart of JBoss Fuse/A-MQ we can not access the jolokia rest api. When we tried it with this command for example:
      curl -u admin:admin http://localhost:8181/hawtio/jolokia/

      It gave an error:

      {"error_type":"java.lang.RuntimeException","error":"java.lang.RuntimeException : java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by io.hawt.hawtio-web [253]","status":500,"stacktrace":"java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by io.hawt.hawtio-web [253]\n\tat org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:332)\n\tat org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:244)\n\tat
      ...

      When tried from browser with url:
      http://localhost:8181/hawtio/jolokia/
      It just gave a blank page without any response.

      They only worked after tried to login to hawtio first:
      http://localhost:8181/hawtio/login

      After successful login, either the curl command:
      curl -u admin:admin http://localhost:8181/hawtio/jolokia/
      or the url from browser:
      http://localhost:8181/hawtio/jolokia/
      worked fine.

            pantinor@redhat.com Paolo Antinori
            rhn-support-qluo Joe Luo
            Jakub Knetl Jakub Knetl (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: