File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Jboss AS7 not accessible via internet, (-b 0.0.0.0 does not solve this issue) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss AS7 not accessible via internet, (-b 0.0.0.0 does not solve this issue)" Watch "Jboss AS7 not accessible via internet, (-b 0.0.0.0 does not solve this issue)" New topic
Author

Jboss AS7 not accessible via internet, (-b 0.0.0.0 does not solve this issue)

Ben Dunne
Greenhorn

Joined: Mar 24, 2013
Posts: 7
This seems to be a pretty big issue for Jboss, as in, I have searched the Internet for the last couple of weeks and found multiple people with this problem.
I am not very knowledgeable when it come to Servers, hosting and the such but when I undertook this project I never thought I would spend this long at this point in the project.
This is a simple jsf project I have deployed.

I have Jboss running on an Amazon instance of windows server 2007.
I am able to access it via local host:8080/name/index.jsf

This produced my webpage as expected.

However If I try to access it externally from <ip adress>:8080/name/index.jsf
I get noting.

I am able to access other content through my port 80 such as text files and other web pages
<ip adress>/textfile.txt
And it works as expected.

So I tried activating standalone.bat -b 0.0.0.0
And still got noting.

Can anyone help me solve this issue, what am I missing.


Here is an example of my standalone.xml

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

The -b 0.0.0.0 should work. Look for the following:

a) The console log should list various ports that are opened, ensure that the HTTP port specifies 0.0.0.0. Example:

15:56:18,802 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-13) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080

b) You can also run "netstat -ab" to list the opened ports, see what it says for port 8080

c) Finally, verify that port 8080 is opened in the Windows firewall.


JBoss In Action
Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Hi Ben,

You can also consider changing your configuration file in the following way.




To



Make sure you have opened port 8080 in your windows firewall
Ben Dunne
Greenhorn

Joined: Mar 24, 2013
Posts: 7
I have


I ran netstat and got:

Among other ports.

I went to

And turned off my firewall

My Amazon security group looks like this


Any other suggestions?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Hmm, looks like you need to ask an Amazon expert. From what you posted, there wouldn't be any issues if you were running on a physical box or even a VM in a physical box that you have access to. I have no problems running JBoss AS in a VirtualBox VM running Win 2008 R2 on my desktop, or in a VMWare VM in my employer's datacenter.
Chiranjib Bhattacharjee
Greenhorn

Joined: Nov 08, 2012
Posts: 12

The property


should be changed to



in jboss-as-7.X.X.Final\standalone\configuration\standalone.xml


~ godspeed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss AS7 not accessible via internet, (-b 0.0.0.0 does not solve this issue)