facebook

Remote debugging throws Failed to connect to remote VM.

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #233356 Reply

    Hi,
    I use tomcat4 and have configured the jpda for remote debugging. I get the following error when I try to debug.

    Failed to connect to remote VM. Connection refused.
    java.net.ConnectException: Connection refused: connect
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    java.net.Socket.connect(Socket.java:452)
    java.net.Socket.connect(Socket.java:402)
    java.net.Socket.<init>(Socket.java:309)
    java.net.Socket.<init>(Socket.java:124)
    org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
    org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
    org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

    The following configuration I have done.

    Configuration Details:

    1) I start tomcat with catalina.sh jpda start. I have deployed the application from MyEclipse using Externally Launched server.
    2) I have configured MyEclipse externally launched server to connect to remote server.
    Is there any thing apart from this do I need to do for remote debugging to be enabled? FYI, I have started tomcat in my unix box and its listening and I am able to access the application from my broswer.

    Kindly provide me with the details where I am missing in order to make remote debugging enabled.

    Regards,
    Sun.

    #233368 Reply

    Scott Anderson
    Participant

    Sun,

    The problem is likely that Tomcat is listening on a different port than MyEclipse is trying to connect to for debugging. What debug settings specifically are you starting Tomcat with? What port are you using with MyEclipse’s External Server connector? Is there a firewall of any sort (software or hardware) between your machine and the one you’re debugging? That could certainly be blocking the connection on the debug port.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Remote debugging throws Failed to connect to remote VM.

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