Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss startup hangs in Eclipse

 
Randy Alexander
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run Jboss 4.2 from inside Eclipse 3.4.2. The server seems to start properly, I get the startup message in the console: "..Started in 39s:910ms". I am also able to bring up a webpage. However, the server time outs and Eclipse shuts it down. Increasing the timeout has no effect. Apparently Jboss is not informing Eclipse that it has started. Can anyone offer a suggestion?

Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Randy, welcome to Java Ranch.

This question has been discussed repeatedly in this forum and the IDE forum - searching for those discussions might help you also. The usual culprit is if you changed the ports JBoss AS uses then you have to also tell Eclipse of those ports or else it cannot tell when the server is running. To educate Eclipse, edit plugins/org.eclipse.jst.server.generic.jboss_1.5.206.v20090115/servers/jboss42.serverdef
 
Jhakda Velu
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Randy
Follow Peter's advice to see if ports used are set properly.
If that is fine, when you start JBoss from eclipse, what does your console say? Have a look there and (paste here)/ (try resolving) if any problem is found.
Pump up the time out generously if everything appears fine in console.

Jhakda
 
Randy Alexander
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ports appear to be correct. JBoss 5.0 has the same problem. I have set the timeout to an outrageously high value (this allows me to actually to do some work before the timeout expires). Eclipse still shows JBoss as "Starting..." even though it has actually started.


Randy


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using plain Eclipse (that is WTP), or are you using JBoss Tools? If you are not using JBoss Tools I highly recommend it for working with JBoss AS.

Actually, I am amazed that Eclipse can shut down JBoss AS because the same port used to shut it down is the one used to verify that it it running.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic