Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1060645

Summary: Not able to start the server with hostname as binding address
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Abdul Basith <abdulbasith.s>
Component: IPv6 supportAssignee: Pavel Slavicek <pslavice>
Status: CLOSED NOTABUG QA Contact: Petr Kremensky <pkremens>
Severity: high Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-18 16:48:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Abdul Basith 2014-02-03 07:31:29 UTC
Description of problem:
Need to start the server using standalone-full.xml in standalone mode, by replacing the addresses with my server hostname. But its failing and not able to bind.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Download eap-6.2.0 and replace the in standalone-full.xml with hostname in all four places.

2. Use the following script to start the server.
sh ${JBOSS_HOME}/bin/ -Djboss.server.default.config=standalone-full.xml -b &

Actual results:
WARN  [] (MSC service thread 1-109) JBAS014622: Value '<<ip>>' for interface selection criteria 'inet-address' is ambiguous, as more than one address or network interface available on the machine matches it. Because of this ambiguity, no address will be selected as a match. Matching addresses: [<<hostname>>/<<ip>>].  Matching network interfaces: [eth0, bond0].

12:58:00,937 ERROR [] (MSC service thread 1-109) MSC000001: Failed to start service org.jboss.msc.service.StartException in service JBAS015810: failed to resolve interface unsecure

Expected results:
It should start and bind with the hostname of the server.

Additional info:
With the same set of configuration in Jboss-as-7.1.1.Final I'm able to start the server without any problem. And its binding with my hostname and IP address

Comment 1 Abdul Basith 2014-02-03 07:40:56 UTC
I'm running on RedHat Enterprise Server-5.8

Comment 2 Brian Stansberry 2014-07-18 16:48:32 UTC
This is not a bug; the behavior is as intended. If the inet-address criteria is used the value must resolve to single network interface; otherwise the behavior of the system will be indeterminate. In your case it resolved to two interfaces, eth0 and bond0.

The AS 7.1.1 behavior was a bug. See