tags:

views:

30

answers:

2

I can't seem to debug the tomcat application through Eclipse. I've set

CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

and then I run bin/catalina.sh, where I see output saying it's listening for dt_socket on port 8000. But whenever I try to connect to port 8000 in Eclipse (by adding an entry in the remote java application menu), it complains about a refused connect. Any ideas?

A: 

Can you check if this works?

JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"

catalina.sh jpda start
Raghuram
It does about the same thing, but I still can't attach to the VM. Eclipse doesn't actually give any output about anything - the first time I select my remote application, it doesn't throw an error, but I don't see any responses or anything. The second time I try to debug that app, it throws the refused connection error.
victor
Actually, yours did fix it. Eclipse doesn't actually say anything when it successfully connects, and reconnecting a second time forces the error. So it was working, but I just didn't notice.
victor
A: 

Double check you don't have a firewall that is blocking port 8000.

worpet