Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss AS 7 not accepting remote connections

I am using JBoss AS 7 and trying to connect to my application using the IP (from a computer in the intranet). It is not working. If I test from the computer which has the server I can see the system running if I go through localhost (http://localhost:8080/MySystem....) but not If I try with the IP (http://:8080/MySystem....).

Any help?

like image 521
Tony Avatar asked Apr 12 '12 22:04

Tony


People also ask

How do I access JBoss server remotely?

If you are running JBoss from an IDE there should be a checkbox that allows for remote web access. It is unchecked by default. In eclipse, double click on JBoss under the servers tab and there should be a checkbox labeled "Listen on all interfaces to allow remote web connections." under the Server Behaviour tab.

Does JBoss 7 support java8?

Yes. When Jboss server startup. It's show Jboss EAP is 7.0 and JDK is 1.8.

How do I turn off JBoss EAP 7?

To stop JBoss EAP by pressing CTRL+C: Navigate to the terminal where JBoss EAP is running. Press Ctrl+C to stop JBoss Enterprise Application Platform.


2 Answers

The answer is to edit standalone.xml and insert the tag any-address instead of inet-address bound to 127.0.0.1

<interfaces>     <interface name="management">         <inet-address value="127.0.0.1"/>     </interface>     <interface name="public">        <any-ipv4-address/>     </interface> </interfaces> 
like image 194
Tony Avatar answered Sep 23 '22 20:09

Tony


I changed the 127.0.0.1 (localhost) to 0.0.0.0 in standalone.xml. It works. Just be aware of the security.

<interfaces>     <interface name="management">         <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>     </interface>     <interface name="public">         <inet-address value="${jboss.bind.address:0.0.0.0}"/>     </interface>     <!-- TODO - only show this if the jacorb subsystem is added  -->     <interface name="unsecure">         <!--           ~  Used for IIOP sockets in the standard configuration.           ~                  To secure JacORB you need to setup SSL            -->         <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>     </interface> </interfaces> 
like image 39
Eric Avatar answered Sep 22 '22 20:09

Eric