activemq-classichawtio

Hawtio executable jar always "Failed to log in, Forbidden"


I'm trying to put hawtio-1.4.11 to work, but failing. I'm using the simplest configuration. In the same host, activemq-5.9.0 (clean, no configs), and I just run java -jar hawtio-app-1.4.11.jar. I've tested the logins to activemq (both old console and hawtio) and it was working ok. Then I accessed hawtio

http://my_ip_address:8080/hawtio

and filled the form, and I was redirected to the login page. Then when I click login, I get "Failed to log in, Forbidden".

Could not see any log messages the give me a hint.

Thanks in advance for any help.

Update:

I did the fowlling test:

wget --user admin --password admin --auth-no-challenge http://localhost:8161/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/TotalConsumerCount

And it worked (HTTP 200), and using a wrong password (HTTP 403). It seems to be working as it supposed to, but still can not make hawtio standalone to connect.

When I try to login using hawtio, the only log messages are those (regardless if I used the correct password or not):

2014-07-17 19:08:47,342 | DEBUG | Handling request for path /auth/login | io.hawt.web.AuthenticationFilter | qtp962581073-40
2014-07-17 19:08:47,342 | DEBUG | Doing authentication and authorization for path /auth/login | io.hawt.web.AuthenticationFilter | qtp962581073-40

BTW, I've tried a lot of different setups, including war version in jboss-4.2.3 but all failed too.


Solution

  • See this blog entry how to install hawtio in ActiveMQ as the web console

    It also explains to setup the security part, which is likely what is your problem.