This content has been marked as final. Show 2 replies
Got the same issue.
Installed Sun Application Server 8.2, enabled debugging in Application Server -> JVM Settings : debug.
Restarted the application server
Tried to debug remotely using Eclipse and I get the message : "Failed to conect to remote VM. Connection refused".
Note that I also tried a connect using "telnet 1044" but connection fails as well.
What's confusing is that debugger in the Application server seems to start fine, here is the log:
Listening for transport dt_socket at address: 1044
Application server is listening at address 1044 for debugger to attach using transport dt_socket
But as well a netstat -a | grep 1044 confirms that the socket is listening:
TCP frwpmdev14:1044 frwpmdev14.orsypgroup.com:0 LISTENING
UDP frwpmdev14:1044 *:*
So the socket is listening but you can't connect.
I don't have time to troubleshoot further and I simply consider to move to newest version 9.0 of the server hoping that the issue simply goes away.
Actually the problem was simple, Eclipse was already connected to the remote VM, this prevents it from connecting again in a separate session.