从Eclipse远程调试服务器Jboss eap 6.4失败

时间:2020-01-20 12:01:25

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

我正在尝试使用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

enter image description here

有人可以告诉我如何解决此问题吗?

1 个答案:

答案 0 :(得分:0)

  • 再次检查用于连接属性的主机是jboss绑定到的主机(例如,通过jboss.bind.adress)
  • 检查JBoss-VM是否真的在端口8787上侦听(例如netstat / a)
  • 检查之间是否没有防火墙。