0

I configure tomcat to debug remotely from Eclipse:

start "Configure Tomcat". Go to Java tab. add the following line:

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

Then start the server.

But I don't see no one log in catalina.out referring to JPDA! Also I don't see that port 8000 is listening (using netstat -a).

I get the following error when I try to debug from eclipse (using remote debug settings):

Failed to connect to remote VM. Connection refused

Why?

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Wolandello
  • 127
  • 4
  • 15
  • Only for debugging purpose, here are two ideas: 1, change the port and switch of the firewall (if you have any), 2, add something new to your config after the JPDA configuration, for example extremely low Xms/Xmx settings, to see that the Tomcat read your parameters correctly. – Gergely Bacso Apr 25 '12 at 06:49
  • 1) I tried to use another port (1044). 2) I allowed all in my firewall, that connected with java and tomcat 3) I add some new config (Xms/Xmx) into Tomcat java option and it doesn't start, so before were correct options and tomcat read it fine. But I still have this error :( – Wolandello Apr 25 '12 at 07:04
  • Woww, now it works fine. I've just changed the config on that I used before. But I still cannot understand why didn't it work....Is it magic??:) – Wolandello Apr 25 '12 at 07:17
  • http://www.youtube.com/watch?v=nn2FB1P_Mn8 :) – Gergely Bacso Apr 25 '12 at 07:28
  • very nice :) I think my web app didn't start when I tried to debug... – Wolandello Apr 25 '12 at 08:08

1 Answers1

0

Port 8000 is free? or is it being used by some one else?

Dheeraj Joshi
  • 3,057
  • 8
  • 38
  • 55