• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Jboss does not finish the startup process

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Liwuen Chew
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey! the "-b 0.0.0.0" worked! Thanks!
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic