Two Laptop Bag*
The moose likes JBoss/WildFly and the fly likes Jboss does not finish the startup process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss does not finish the startup process" Watch "Jboss does not finish the startup process" New topic
Author

Jboss does not finish the startup process

Liwuen Chew
Greenhorn

Joined: Mar 11, 2010
Posts: 24
Hi! I'm new on this forum and I would like to tell that it helped me a lot in the past.
Well, I have this problem. Hope somebody could help me.
I am using Jboss 5.0.1 and Eclipse Galileo. I am trying to do some web services. The fact is that I added Jboss as a server on Eclipse, and it starts fine. But when I add the option "-b" and my IP address ("-b xxx.xxx.xxx.xxx") in the launch configuration arguments and try to start the server, I get in the console a message telling me that it started, but Eclipse still shows a green progress bar saying "Starting server" and it does never stops the start process.

I thought it could be a Jboss problem, but when I do the "run -b xxx.xxx.xxx.xxx" (xxx.xxx.xxx.xxx=ip address) on the prompt in the bin folder, it works. It seems to be something about the Jboss configuration on Eclipse, but still I am not sure if it is the problem or how to solve this.
Can somebody help me? Thank you very much!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

The problems is that you never told Eclipse that it should look somewhere other than localhost to determine that JBoss AS was running. The issue has to do with how ports are bound when specifying an IP address. If you use a specific address, such as 192.168.1.100, then JBoss AS will respond only to requests to that address; it will NOT respond to requests on localhost. But if you bind to 0.0.0.0, then JBoss AS will bind to all IP addresses on the NIC and thus respond to requests directed at both 192.168.1.100 and to localhost.

One possible solution: start JBoss AS with -b 0.0.0.0 instead.

Another possible solution: search the Eclipse directory for the files *.serverdef. Locate the file for the JBoss AS server version you specific in Eclipse when you created the server and edit that file changing all occurrences of localhost or 127.0.0.1 to your IP address.


JBoss In Action
Liwuen Chew
Greenhorn

Joined: Mar 11, 2010
Posts: 24
Hey! the "-b 0.0.0.0" worked! Thanks!
 
jQuery in Action, 2nd edition
 
subject: Jboss does not finish the startup process
 
Similar Threads
invoke EJB on a remote machine with dynamic IP
Certificate problem: No subject alternative names present
how to stop jboss server
Jboss server in eclipse is not starting withing 400 seconds
JBoss virtual host issues and multicore processor