【发布时间】:2013-05-30 14:33:17
【问题描述】:
我正在尝试连接到 osx 上本地部署的 JBoss 7.2.0,但在尝试连接 CLI 时收到以下错误消息:
$ bin/jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
The controller is not available at localhost:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
[disconnected /]
Netstat 显示:
tcp4 0 0 127.0.0.1.9999 *.* LISTEN
和服务器日志状态:
16:24:37,118 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:9999
除此之外,我还可以远程登录到 127.0.0.1:9999(尽管由于数据包大小不正确而导致连接中断,我认为这符合预期)。
我已验证standalone.xml 将 127.0.0.1 声明为正确的绑定地址,并将 9999 声明为 management-native 的正确端口。
有什么我遗漏的,或者有什么其他方法可以解决问题吗?
【问题讨论】:
-
这似乎是一个可能的罪魁祸首:bugs.sun.com/bugdatabase/view_bug.do?bug_id=7159361