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

Community
  • 1
  • 1
yogsma
  • 10,142
  • 31
  • 97
  • 154
  • What command line arguments are you providing to the JVM when you start WebSphere? – Elliott Frisch Mar 11 '16 at 16:25
  • -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777 – yogsma Mar 11 '16 at 16:28
  • And you're attempting to connect to port `7777`? – Elliott Frisch Mar 11 '16 at 16:49
  • Yes, I am trying to connect to 7777 through eclipse remote debugging option, but I get the error mentioned. – yogsma Mar 11 '16 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? – pczeus Mar 11 '16 at 17:06
  • I added the snapshot of settings if that helps. This issue is trivial to me, I am running out of ideas why it might not be connecting. I have checked through telnet to see if this was a firewall issue, I have checked the port is open on the server and listening. Also I tried with a different computer and faced the same issue. Issue is particularly with server, so not sure if anything else i need to configure there. – yogsma Mar 11 '16 at 17:17

1 Answers1

1

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

yogsma
  • 10,142
  • 31
  • 97
  • 154