• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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: 28117
198
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
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic