簡體   English   中英

從 Eclipse 遠程調試服務器 Jboss eap 6.4 失敗

[英]Remote debugging the server Jboss eap 6.4 is failing from Eclipse

我正在嘗試使用 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

在此處輸入圖片說明

誰能告訴我如何解決這個問題?

  • 仔細檢查連接屬性上使用的主機是否是 jboss 綁定到的主機(例如通過 jboss.bind.adress)
  • 檢查 JBoss-VM 是否真的在監聽 8787 端口(例如 netstat /a)
  • 檢查中間沒有防火牆。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM