我试图让 hawtio-1.4.11 工作,但失败了。我正在使用最简单的配置。在同一主机上,activemq-5.9.0(干净,无配置),我只运行 java -jar hawtio-app-1.4.11.jar。我已经测试了activemq(旧控制台和hawtio)的登录,它工作正常。然后我访问了hawtio
http://my_ip_address:8080/hawtio
并填写表格,我被重定向到登录页面。然后当我点击登录时,我得到“登录失败,禁止访问”。
看不到任何日志消息给我一个提示。
提前感谢您的帮助。
更新:
我做了fowling测试:
wget --user admin --password admin --auth-no-challenge http://localhost:8161/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/TotalConsumerCount
它有效(HTTP 200),并且使用了错误的密码(HTTP 403)。它似乎按预期工作,但仍然无法使 hawtio 独立连接。
当我尝试使用 hawtio 登录时,唯一的日志消息是那些(无论我是否使用了正确的密码):
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
顺便说一句,我尝试了很多不同的设置,包括 jboss-4.2.3 中的战争版本,但也都失败了。