【问题标题】:Remote debugging the server Jboss eap 6.4 is failing from Eclipse从 Eclipse 远程调试服务器 Jboss eap 6.4 失败
【发布时间】:2020-01-20 12:01:25
【问题描述】:

我正在尝试使用 Eclipse 远程连接到 JBoss eap 6.4 以进行远程调试。 我在“standalone.bat

中修改了以下几行
rem JBoss Bootstrap Script for Windows
rem -------------------------------------------------------------------------

rem Use --debug to activate debug mode with an optional argument to specify the port
rem Usage : standalone.bat --debug
rem         standalone.bat --debug 9797

rem By default debug mode is disable.
set DEBUG_MODE=true
set DEBUG_PORT=8787   

我还在“standalone.conf.bat”文件中修改了以下行(只是未注释):

rem # Sample JPDA settings for remote socket debugging
set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"

当我尝试远程连接 JBoss 服务器时出现以下错误:

Failed to connect to remote VM. Connection refused.
Connection refused: connect

谁能告诉我如何解决这个问题?

【问题讨论】:

    标签: java eclipse jboss remote-debugging jboss-eap-6


    【解决方案1】:
    • 仔细检查连接属性上使用的主机是 jboss 绑定到的主机(例如,通过 jboss.bind.adress)
    • 检查 JBoss-VM 是否真的在监听 8787 端口(例如 netstat /a)
    • 检查中间没有防火墙。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-20
      • 2018-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-07
      • 2012-12-20
      相关资源
      最近更新 更多