can't remote debug [message #282949] |
Thu, 24 March 2005 10:18 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04180 seconds