1

I am trying to remote a debug an application which is deployed through Websphere. I have all the port configured correctly on server side and on eclipse side. I can use

telnet host port

to connect to remote host and port correctly. But When I try to connect through remote debug through eclipse, I run into the error

Failed to connect to remote VM
  com.sun.jdi.connect.spi.ClosedConnectionException 

What can be the possible causes for this? I have checked and searched Stackoverflow for this error already. I have tried the most things from answer on this question Eclipse Error: "Failed to connect to remote VM"

enter image description here enter image description here

6
  • What command line arguments are you providing to the JVM when you start WebSphere? Commented Mar 11, 2016 at 16:25
  • -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777 Commented Mar 11, 2016 at 16:28
  • And you're attempting to connect to port 7777? Commented Mar 11, 2016 at 16:49
  • Yes, I am trying to connect to 7777 through eclipse remote debugging option, but I get the error mentioned. Commented Mar 11, 2016 at 16:50
  • It would help if you show the configuration you added to Websphere and Eclipse to both expose and access the debug port. I mean, if you can't figure it out and you have all the settings in front of you, how would someone else figure it out with nothing to work from? Commented Mar 11, 2016 at 17:06

1 Answer 1

1

I changed the port and it worked. It was a networking issue with that port of 7777.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.