• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Remote Debugging with Eclipse / JBoss does not work any more

 
Ranch Hand
Posts: 153
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I start JBoss 6 M5 with
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
In Eclipse Eclipse Java EE IDE for Web Developers Build id: 20100218-1602
I have Remote Java Application Debug Configuration
Connection Type: Standard (Socket Attach)
Host: localhost
Port 8787
I have used this setup countless times before and it has worked.
I don't know what has changed. Now I keep getting
"Failed to connect to remote VM. Connection refused.
Connection refused: connect"
Restarting Eclipse and even rebooting has not solved this.
TCPView shows me that JBoss listens on port 8787.
I have also tried switching the port to no avail.

Any ideas what might cause this?

Many thanks Hans
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The normal first question I'd ask is "Has someone set up a firewall"?

But you're using localhost, so unless the "localhost" network address in the hosts file has been tampered with, networking is probably not an issue.

You can see if the problem is in the client (Eclipse) or in the server (JBoss) by attempting connection with a different debugged. Shut down Eclipse to remove possible interference and fire up the Java command-line "jdb" application, aimed at localhost:8787
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic