facebook

Failed to connect to remote VM. Connection refused.

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266504 Reply

    jadeite1000
    Member

    Hi:

    I am trying to debug my java code through remote debuggin.
    I am using MyEclipse 5.1 and Weblogic 8.1:

    In my weblogic.cmd I use the following:

    set DEBUG_OPT=%DEBUG_OPT% -Xdebug
    set DEBUG_OPT=%DEBUG_OPT% -Xnoagent
    set DEBUG_OPT=%DEBUG_OPT% -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000

    “%JAVA_HOME%\bin\java” %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %DEBUG_OPT% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=”%WL_HOME%\server\lib\weblogic.policy” -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=3999,suspend=n -Xmanagement weblogic.Server

    I get the above error, when I tried to attach to the weblogic 8.1 server.
    The same thing is that I got the debugging to work on another desktop by doing the same thing.

    I even copied the workspace from the other desktop and used it on the machine that didn’t work.

    Is there some log in myEclipse to get more detail message for this error.

    Yours,

    Albert Lam

    #266571

    Riyad Kalla
    Member

    Albert,
    A few things. If you are running WebLogic from inside MyEclipse, the debugger will automatically be connected, but this can only be done if it’s installed on the same machine. And secondly, 90% of the time when the debugger fails to attach to remote instances, is because the remote machine has a firewall running, usually the Windows Firewall, and the user just didn’t realize it was running.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Failed to connect to remote VM. Connection refused.

You must be logged in to post in the forum log in