Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » can't remote debug
can't remote debug [message #282949] Thu, 24 March 2005 10:18 Go to next message
Eclipse UserFriend
Originally posted by: vngarla.tiscali.de

Hi,

My Setup:
eclipse: Version: 3.0.0 Build id: 200406251208
java: -fullversion 1.4.2_06-b03
OS: Suse Linux 9.2 x/86

I'm trying to debug a remote process - weblogic server in this case -
and I can't attach - i get a "Connection refused". I don't understand
the connection refused exception: I can telnet to localhost:<debug
port>, and JDB can attach just fine.

what gives?

Eclipse throws the following error:
Failed to connect to remote VM. Connection refused.
java.net.ConnectException: Connection refused
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.ja va: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.SocketAttachingConnectorImp l.attach(SocketAttachingConnectorImpl.java:103)
org.eclipse.jdt.internal.launching.SocketAttachConnector.con nect(SocketAttachConnector.java:131)
org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaun chConfigurationDelegate.launch(JavaRemoteApplicationLaunchCo nfigurationDelegate.java:75)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

I'm starting WLS with the following debug options: -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend= n

TIA,

vijay
Re: can't remote debug [message #283037 is a reply to message #282949] Thu, 24 March 2005 21:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.musta.nospam.com

Vijay:

One explanation is that you simply didn't configure your debugger launch
properly.

Did you do the following?

a) select Debug->Debug
b) select Remote Java Application under Configurations
c) push "New"
d) configure host and port accordingly
Re: can't remote debug [message #283121 is a reply to message #283037] Sat, 26 March 2005 23:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vngarla.tiscali.de

Yes, I did that (and I turned my computer on before trying to log in for
that matter).

I figured out the 'problem'. In the debug configuration, if the debug
host is "localhost", I get a connection refused. If I specify an IP
Address, e.g. 127.0.0.1 for the loopback adapter, or 192.168.1.2 (my
wlan), then I can connect. Now that it works, I'm happy, however, it's
not clear why localhost doesn't work. (This works fine in windows. I'm
curious if other linux users have experienced this problem.)

- vijay


Tom Musta wrote:
> Vijay:
>
> One explanation is that you simply didn't configure your debugger launch
> properly.
>
> Did you do the following?
>
> a) select Debug->Debug
> b) select Remote Java Application under Configurations
> c) push "New"
> d) configure host and port accordingly
Re: can't remote debug [message #758470 is a reply to message #283121] Wed, 23 November 2011 11:52 Go to previous message
marie Missing name is currently offline marie Missing nameFriend
Messages: 63
Registered: March 2011
Member
I am also facing same problem.
I have some doubt :
1)what is address field mean in this JAVA_OPTS ?
2)Do i need to modify run.bat and run.sh or anyone of them?
Previous Topic:"Colors and Fonts" edit button not working
Next Topic:Setting a Preference value programmaticly : DISABLE_OPEN_EDITOR_IN_PLACE
Goto Forum:
  


Current Time: Mon Dec 22 11:34:59 GMT 2014

Powered by FUDForum. Page generated in 0.06299 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software