chaitu chaitu
asked on
connect to remote VM.connection refused with eclipse and jboss
previously i used to remote debug using jdeveloper and jboss;now when i try to remote debug with eclipse3.1.2 and jboss; am getting failed to connect to remote VM.connection refused.i followed this url;am using jdk1.5;not able to find the what is the error?is there any log window in eclipse
http://www.onjava.com/pub/a/onjava/2005/08/31/eclipse-jboss-remote-debug.html
i started eclipse using this command;
eclipse.exe -vm c:\jdk1.5.0_05\jre\bin\jav aw.exe
http://www.onjava.com/pub/a/onjava/2005/08/31/eclipse-jboss-remote-debug.html
i started eclipse using this command;
eclipse.exe -vm c:\jdk1.5.0_05\jre\bin\jav
Did you set JAVA_OPTS correctly in the JBoss run batch file?
ASKER
set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_soc ket,addres s=8787,ser ver=y,susp end=n %JAVA_OPTS%
After running that, open another command window and do
telnet localhost 8787
and let me know what you get
telnet localhost 8787
and let me know what you get
Hi chaituu
have a look here: http://forum.java.sun.com/thread.jspa?threadID=561817&tstart=105
Cheers
have a look here: http://forum.java.sun.com/thread.jspa?threadID=561817&tstart=105
Cheers
ASKER
telnet localhost 8787
nothing is there in console;but its running
nothing is there in console;but its running
If you didn't get
Could not open connection to the host, on port 8787: Connect failed
then check the Eclipse setting for the correct host and port on the remote debug options
Could not open connection to the host, on port 8787: Connect failed
then check the Eclipse setting for the correct host and port on the remote debug options
jwdp port (here 8787) is not concurrent. Once you have a client connected to this port, other client would get connection refused. You need to make sure that eclipse debugger is the only application connecting to this port at a time.
If you're still having a problem, can you post the result of
netstat -an | find "8787"
netstat -an | find "8787"
ASKER
TCP 127.0.0.1:3596 127.0.0.1:8787 ESTABLISHED
TCP 127.0.0.1:8787 127.0.0.1:3596 ESTABLISHED
TCP 127.0.0.1:8787 127.0.0.1:3596 ESTABLISHED
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
'already'=now
ASKER
ok i will change port number and let u know
ASKER
i changed port still same error
TCP 0.0.0.0:7000 0.0.0.0:0 LISTENING
TCP 0.0.0.0:7000 0.0.0.0:0 LISTENING
You remembered to change the port in Eclipse..?
ASKER
host:localhost
post:7000
i think problem may be jdk????
post:7000
i think problem may be jdk????
I think you should shut down what's already apparently connected, debugging-wise
ASKER
yes it worked;i thought when communication happened between jboss and eclipse no message is coming on the console saying debugger connected(it will come in jdeveloper);i thought same message will come in eclipse also;thats why i try to reconnect debug then i am getting that message;
ASKER
where can i see the data while debugging.
Did you switch to debug perspective and set breakpoints?
ASKER
yes i am able to debug;how to set breakpoints in eclipse?;just double click in left side of the source code;
Yes
ASKER
what r the advantages of using eclipse over other IDE
That's a bit of a general q isn't it? ;-#
It's free for one ...
It's free for one ...
ASKER
i think jdeveloper is also free;performance wise will i find any difference?why eclipse is so popular over other IDE's??
> i think jdeveloper is also free;performance wise will i find any
> difference?why eclipse is so popular over other IDE's??
Eclipse is open source and you have freedom to develop your plugins, and you will find a lot of open source plugins of eclipse
> difference?why eclipse is so popular over other IDE's??
Eclipse is open source and you have freedom to develop your plugins, and you will find a lot of open source plugins of eclipse
ASKER
where can i jbosseclipseIDE plugin
ASKER
just i downloaded one plugin and placed in C:\eclipse\plugins directory;its not effecting in the project;when i go see the C:\eclipse\plugins directory the contents of new plugin is not there;
:-)
Hope it's OK now
Hope it's OK now