Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to start JBoss 7 after it is shut down -- "bind failed: Address already in use"

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using JBoss AS 7.1.0.Final on Mac 10.7.5. Occasionally, I'll try and restart JBoss, and I'll fail with the below error ("bind failed: Address already in use"). Below is output from the console …



The server log has this message



What else should I be doing to restart my server successfully? - Dave
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do a netstat and see which process is using the port. See this for more info https://community.jboss.org/wiki/DebugBindException
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What port is in use, though? The error messages don't provide enough information. I know it isn't 8080, b/c I can't telnet into that port. -
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah! never mind I didn't read the logs carefully:

ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)


It looks like you have enabled debug options in standalone.conf and that debug port is already in use for whatever reason. You might want to edit the standalone.conf and disable the debugging or find out why that port (8787 by default) is being held up.
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good deal. Thanks for clarifying.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic