带有JBoss A-MQ 6.1的Red Hat 7:管理控制台无法访问

时间:2014-09-09 18:17:51

标签: activemq rhel7

我们遇到与此OP相同的问题:JBoss ActiveMQ on Red Hat - Unable to access AMQ Web Console,但该帖子并未说明他是如何解决问题的。

我们正在尝试评估JBoss A-MQ,并根据他们的installation guide安装了带有A-MQ 6.1的RHEL 7。一切都在本地工作,例如样本生产者/消费者测试在验证安装步骤中成功。

但是,即使配置了远程用户,我们也无法访问管理控制台。我们必须在 setenv 中添加一个JAVA_OPTIONS条目来覆盖默认的IPv6套接字,netstat显示该服务现在正在侦听tcp套接字而不是tcp6:

File /opt/jboss-a-mq-6.1.0.redhat-379/bin/setenv now contains:
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
export JAVA_OPTS

# netstat -paunt | grep 8181
tcp        0      0 0.0.0.0:8181            0.0.0.0:*               LISTEN      10698/java

我们可以从其他系统ping该框,但尝试在端口8181上打开telnet会话超时。我们尝试过的管理控制台网址是:

http://172.16.100.110:8181/hawtio
http://172.16.100.110:8181
但是没有工作。 我们缺少什么?

以下是来自 amq.log 的条目,其中包含 hawt ,它们似乎正在正确启动:

$ grep hawt amq.log
2014-09-09 11:32:35,778 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   35 | 98 - org.ops4j.pax.web.pax-web-runtime - 3.0.6 | Binding bundle: [io.hawt.hawtio-web [146]] to http service
2014-09-09 11:32:35,860 | INFO  | pool-10-thread-1 | ConfigManager                    | io.hawt.system.ConfigManager       32 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Configuration will be discovered via system properties
2014-09-09 11:32:35,863 | INFO  | pool-10-thread-1 | JmxTreeWatcher                   | io.hawt.jmx.JmxTreeWatcher         63 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Welcome to hawtio 1.2-redhat-379 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
2014-09-09 11:32:35,865 | INFO  | pool-10-thread-1 | UploadManager                    | io.hawt.jmx.UploadManager          40 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Using file upload directory: /opt/jboss-a-mq-6.1.0.redhat-379/data/tmp/uploads
2014-09-09 11:32:35,868 | INFO  | pool-10-thread-1 | AuthenticationFilter             | io.hawt.web.AuthenticationFilter   84 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Starting hawtio authentication filter, JAAS realm: "karaf" authorized role: "admin" role principal classes: ""
2014-09-09 11:32:35,965 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   35 | 98 - org.ops4j.pax.web.pax-web-runtime - 3.0.6 | Binding bundle: [io.hawt.hawtio-karaf-terminal [148]] to http service
2014-09-09 11:32:35,987 | INFO  | pool-10-thread-2 | ConfigManager                    | io.hawt.system.ConfigManager       32 | 148 - io.hawt.hawtio-karaf-terminal - 1.2.0.redhat-379 | Configuration will be discovered via system properties
2014-09-09 11:32:35,988 | INFO  | pool-10-thread-2 | AuthenticationFilter             | io.hawt.web.AuthenticationFilter   84 | 148 - io.hawt.hawtio-karaf-terminal - 1.2.0.redhat-379 | Starting hawtio authentication filter, JAAS realm: "karaf" authorized role: "admin" role principal classes: ""
2014-09-09 11:32:35,996 | WARN  | FelixStartLevel  | ConfigFacade                     | io.hawt.config.ConfigFacade        23 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | No ConfigFacade constructed yet so using default configuration for now
2014-09-09 11:32:36,015 | INFO  | pool-10-thread-2 | LoginServlet                     | io.hawt.web.LoginServlet           55 | 148 - io.hawt.hawtio-karaf-terminal - 1.2.0.redhat-379 | hawtio login is using default HttpSession timeout
2014-09-09 11:32:36,128 | INFO  | pool-10-thread-1 | hawtio-web - 146}                | lipse.jetty.util.log.JavaUtilLog   75 | 90 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed
2014-09-09 11:32:36,191 | INFO  | pool-10-thread-1 | LoginServlet                     | io.hawt.web.LoginServlet           55 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | hawtio login is using default HttpSession timeout
2014-09-09 11:32:39,227 | INFO  | de startup timer | MavenIndexerFacade               | maven.indexer.MavenIndexerFacade   98 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | Storing maven index files in local directory: /opt/jboss-a-mq-6.1.0.redhat-379/data/mavenIndexer
2014-09-09 11:32:39,621 | INFO  | de startup timer | MavenIndexerFacade               | maven.indexer.MavenIndexerFacade  148 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | Updating the maven indices. This may take a while, please be patient...
2014-09-09 11:32:39,852 | INFO  | de startup timer | MavenIndexerFacade               | maven.indexer.MavenIndexerFacade  185 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | Completed updating 2 maven indices.

1 个答案:

答案 0 :(得分:0)

OMG,它是本地服务器上的防火墙。

花了一天时间在网上搜索想法,试图弄清楚我的配置出了什么问题,绝望之下我终于认为我应该尝试禁用防火墙,看看会发生什么。所以我用命令关闭它:

sudo service firewalld stop

突然间我可以访问管理控制台了!我尝试了默认的网址,它起作用了:

http://172.16.100.110:8181

D'哦!