-
Bug
-
Resolution: Done
-
Minor
-
jboss-fuse-6.2.1
-
None
-
%
-
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.