Remote debugging in eclipse with jetty server
===

I configured the debug configurations for remote debugging  my maven project ? I set the Host as localhost and the port as 7000. I even ran the following command as the launch was not working :

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=10000,suspend=n yourServer
However it is still not launching the remote VM and I cannot proceed with my debugging.

It gives the same error as :

Failed to connect to remote VM.Connection refused.
How should I proceed with solving this problem ?