Skip to main content


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 messageGo to next 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?
Re: can't remote debug [message #1781058 is a reply to message #758470] Wed, 31 January 2018 22:31 Go to previous message
Venkat Reddy is currently offline Venkat ReddyFriend
Messages: 1
Registered: January 2018
Junior Member
I'm facing same issue unable to start weblogic server in debug mode. When I start in debug mode it goes to normal mode. Even tried configuring debut port 8453
Any help?
Eclipse Version: Kepler Service Release 2
Build id: 20140224-0627
WebLogic server 10.3.3
Error:
Failed to connect to remote VM. Connection refused.
Connection refused: connect
Previous Topic:Wildfly/Camel inside eclipse fails to resolve JBOSS_HOME keyword
Next Topic:Eclipse is not debugging my web app
Goto Forum:
  


Current Time: Thu Jun 21 13:54:46 GMT 2018

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

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

Back to the top