Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Remote debugging , connetion refused !!
icon9.gif  Remote debugging , connetion refused !! [message #686341] Wed, 22 June 2011 04:18 Go to next message
gallark  is currently offline gallark Friend
Messages: 5
Registered: June 2011
Junior Member
Hi all I would like to help me with a
problem I have, this is an application created
sigiuente under the environment:

jdk 1.6.0_26
Helios Eclipse
Ejb project
SA 5.0 and Jboss 4.0.2
OS Windows XP - firewall disabled

The thing is trying to do remote debugging
invariably throws the following error:

Failed to connect to remote VM. Connection refused.
Connection refused: connect! Evil or Very Mad

To try to achieve the remote debug did the following

Changing file of jboss 5.0.1 ga RUN.CONF
JAVA_OPTS = "$ JAVA_OPTS -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend = n,address = 8002"

Setting the debug

Project: NameProyect
connection type: standart (Socket Attach)
host: localhost
port: 8002
I welcome your comments to solve this problem.

[Updated on: Wed, 22 June 2011 04:21]

Report message to a moderator

Re: Remote debugging , connetion refused !! [message #686347 is a reply to message #686341] Wed, 22 June 2011 04:21 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

> Changing file of jboss 5.0.1 ga RUN.CONF
> JAVA_OPTS = "$ JAVA_OPTS -Xdebug -Xnoagent
> -Xrunjdwp:transport=dt_socket,server=y,suspend = n,address = 8002"

There should not be a space character between the $ and JAVA_OPTS.

HTH
Michael
Re: Remote debugging , connetion refused !! [message #686365 is a reply to message #686347] Wed, 22 June 2011 05:34 Go to previous messageGo to next message
gallark  is currently offline gallark Friend
Messages: 5
Registered: June 2011
Junior Member
Thanks for responding.
Remove the space, same result.
Any other ideas
Re: Remote debugging , connetion refused !! [message #686366 is a reply to message #686365] Wed, 22 June 2011 05:44 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

We are working with JBoss 5.1.GA and use the following java options to
start it in order to attach a remote debugger:

-Xrunjdwp:transaport=dt_socket,address=8787,server=y,suspend=n

Notes:
- no space anywhere around = or so.
- we don't use the two options -Xdebug -Xnoagent

Another question: what happens when you try to connect with a telnet
client to the debug port?

Michael
Re: Remote debugging , connetion refused !! [message #686393 is a reply to message #686366] Wed, 22 June 2011 07:05 Go to previous messageGo to next message
gallark  is currently offline gallark Friend
Messages: 5
Registered: June 2011
Junior Member
hello Michael, and thanks
I look now to download the version 5.1 of JBoss ga to continue with the tests, and tell you how I was.

Truth nose using telnet Sad , I am in windows xp, a quick Smile way to test, perhaps from the cmd?

greetings
Re: Remote debugging , connetion refused !! [message #686424 is a reply to message #686393] Wed, 22 June 2011 08:15 Go to previous messageGo to next message
gallark  is currently offline gallark Friend
Messages: 5
Registered: June 2011
Junior Member
Hey Michael, and switch to version 5.1 GA,
I connect on windows option eclipse / preferences / server / addjbossComunity Runtime Environment - 5.0,
but even this fails with the debug remote
I just noticed that failure to the debug out two messages on the console, they say:

03:01:39,171 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
03:01:39,171 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container


and simultaneously shows the error message
Failed to connect to remote VM. Connection refused.
Connection refused: connect

another thing is that when I try to Initiate the jboss jboss from files,run.bat, does not lift the server and therefore I can not get into theweb console, this means something?

Re: Remote debugging , connetion refused !! [message #686451 is a reply to message #686393] Wed, 22 June 2011 08:58 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

In Windows you can open a cmd prompt and then

telnet localhost port

If this connection can be established, JBoss is OK and if the telnet
client complains "Could not open connection..." it's the JBoss
configuration.

This is just to find out whether JBoss or Eclipse causes the troubles.

Michael
Re: Remote debugging , connetion refused !! [message #686467 is a reply to message #686451] Wed, 22 June 2011 09:39 Go to previous messageGo to next message
gallark  is currently offline gallark Friend
Messages: 5
Registered: June 2011
Junior Member
I kept remembering a few days ago I replaced the variable "path" of my "windows", and now trying to
telnet test told me I did not recognize, investigating
some resolution of that problem and make the telnet
localhost 8787, local tells me connecting to host ...
connection error
I guess that deleting the path, I did lose a lot
system, so it is best to reinstall it, that
do you think?


---------------------------------------
updated:
After some (many) hours of trial and error was
solved the problem. Goodbye. Very Happy

[Updated on: Thu, 23 June 2011 17:53]

Report message to a moderator

Re: Remote debugging , connetion refused !! [message #758901 is a reply to message #686467] Fri, 25 November 2011 06:55 Go to previous messageGo to next message
marie Missing name is currently offline marie Missing nameFriend
Messages: 63
Registered: March 2011
Member
Hi,
in fact i am also getting the same problem.
I did telnet in cmd prompt
It is saying
"Connecting To 8787...Could not open connection to the host, on port 23: Connect failed"

one more thing
My configuration is:
Jboss5
Eclipse Helios
Project is RCP Application
Re: Remote debugging , connetion refused !! [message #759109 is a reply to message #758901] Sat, 26 November 2011 13:38 Go to previous messageGo to next message
Javin Paul is currently offline Javin PaulFriend
Messages: 48
Registered: July 2011
Location: mumbai
Member

"Connecting To 8787...Could not open connection to the host, on port 23: Connect failed"

This means some network problem, either port 23 is blocked which is highly unlikely or some firewall issue. What does network admin says.

Apart form that some other reason:

1) trying to connect to wrong host or port.
2) Application is not running when you try to connect, application must be running with debug setting before connect to eclipse.
Re: Remote debugging , connetion refused !! [message #759250 is a reply to message #759109] Mon, 28 November 2011 05:08 Go to previous messageGo to next message
marie Missing name is currently offline marie Missing nameFriend
Messages: 63
Registered: March 2011
Member
Hi,
I am working on LAN ,so no as issue about firewall.
I checked other problems..i connected to correct port.

[Updated on: Mon, 28 November 2011 05:09]

Report message to a moderator

Re: Remote debugging , connetion refused !! [message #800500 is a reply to message #759250] Fri, 17 February 2012 06:34 Go to previous message
Marimuthu Sundaraj is currently offline Marimuthu SundarajFriend
Messages: 3
Registered: February 2012
Junior Member
Reply may be very late, but useful for new comers.
Server or Container(your application) needs to be started completely
before starting debug launcher in eclipse or checking using telnet.

For example if you use JBoss server it will take few seconds/minutes to up and running,
and port for Server/Container and Eclipse debug Config should be same. Then it will be fine.

Muthu.
Previous Topic:War Problem
Next Topic:Installing Eclipes second time
Goto Forum:
  


Current Time: Sat Dec 20 20:53:45 GMT 2014

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

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