aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss startup hangs in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss startup hangs in Eclipse" Watch "Jboss startup hangs in Eclipse" New topic
Author

Jboss startup hangs in Eclipse

Randy Alexander
Greenhorn

Joined: Jun 01, 2009
Posts: 5
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

Joined: May 14, 2008
Posts: 5823
    
    7

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


JBoss In Action
Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 166
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


If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
Randy Alexander
Greenhorn

Joined: Jun 01, 2009
Posts: 5
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

Joined: May 14, 2008
Posts: 5823
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss startup hangs in Eclipse