3

我试图让 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 中的战争版本,但也都失败了。

4

4 回答 4

2

请参阅此博客条目如何在 ActiveMQ 中安装 hawtio 作为 Web 控制台

它还解释了设置安全部分,这可能是您的问题。

于 2014-07-17T08:08:34.353 回答
1

我能够登录到activemq控制台,但不能登录hawtio。

就我而言,我发现:

  • 从 conf/jetty-realm.properties 读取 activemq 控制台凭据
  • 从 conf/users.properties 和 conf/groups.properties 读取 hawtio 凭据

在 users.properties 中,密码不能包含相同的字符,在我的例子中是欧元符号 €</p>

于 2019-05-30T08:25:14.617 回答
0

I have had a similar issue: get always a hawtio (1.4.45) styled login page when try to remote connect to ActiveMQ jolokia api (ActiveMQ 5.10.1)

The reason was that the URL-paht configured in hawtio, that points to ActiveMQ jolokia api must end with an /!

for example /api/jolokia/

于 2015-01-27T16:27:52.167 回答
0

On a Unix machine - I fixed this through changing the order of the configurationpath to the configuration scripts. Added /bin/env as the first statment in the /bin/activemq script under # CONFIGURATION # For using instances,

since it ignores the others but the first as stated here

Unix configuration

happy coding !

于 2015-06-22T15:46:13.523 回答