-
1. Re: JBAS015810: failed to resolve interface public
nickarls Mar 20, 2013 3:00 AM (in response to mpfontana)Does the interface 127.0.2.1 work (tried pinging it)?
Does the AS start with standalone.(sh|bat) -b 127.0.2.1?
The "failed to resolve" sounds a bit strange.
-
2. Re: JBAS015810: failed to resolve interface public
mpfontana Mar 20, 2013 8:21 AM (in response to nickarls)No, thats not respond because its don't exist. I'm trying to set up a project, but i already have a service on the interface localhost and i need to change the interface when the Jboss is started. Why this jboss need to have a valid ip?
-
3. Re: JBAS015810: failed to resolve interface public
nickarls Mar 20, 2013 8:30 AM (in response to mpfontana)We are talking physical network interfaces here, you can't just make them up, methinks.
-
4. Re: JBAS015810: failed to resolve interface public
dlofthouse Mar 20, 2013 8:33 AM (in response to nickarls)+1 you can not just make up these addresses - JBoss uses this to create the server sockets but if the address does not exist then there is nothing to listen on for incomming connection.
Why this jboss need to have a valid ip?
An alternative question is what use to you is an AS installation that you can not connect to due to not having a valid IP address?
What OS are you using? You are reaching operating specific configuration here.
-
5. Re: JBAS015810: failed to resolve interface public
mpfontana Mar 20, 2013 9:01 AM (in response to dlofthouse)I don't know how Jboss 7 AS works, but in the previous version i was abble to set up an service in an ip on the network that does not exist. I use windows 8 x64 and use only academically.
-
6. Re: JBAS015810: failed to resolve interface public
buuhsmead May 10, 2013 10:50 AM (in response to mpfontana)It seems to be a bug in jboss 7 which is going to be fixed in 7.1.3.....
So I created an additonal loopback entry in /etc/sysconfig/network-scripts/ifcfg-lo:1. And changed the content to:
DEVICE=lo:1
IPADDR=127.0.10.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback-1
And now I can use : ./standalone.sh -b 127.0.10.1
-
7. Re: JBAS015810: failed to resolve interface public
tlarevo Sep 29, 2014 6:49 AM (in response to mpfontana)This reply might be too late, but for those who come looking for an answer heres my experience
This kind of error could occur if you happen to have specified bind address for JAVA_OPTS in your configs in standalone.conf
-Djboss.bind.address=192.168.xxx.xxx -Djboss.bind.address.management=192.168.xxx.xxx -Djboss.bind.address.unsecure=192.168.xxx.xxx
If so make sure you have given the correct IP for the bind address otherwise you'd see something similar to the above mentioned error. Of course there could be other reasons this is my experience.
-
8. Re: JBAS015810: failed to resolve interface public
silean1 Oct 2, 2017 9:07 AM (in response to mpfontana)Since this is the first what I've got from searching thru google, I will give this error another solution here.
Below file can have an unupdated IP address.
grep bind /etc/default/wildfly.conf
JBOSS_OPTS="-Djboss.bind.address=xx.xx.xx.xx -Djboss.bind.address.management=xx.xx.xx.xx -Djboss.management.http.port=9990 -Djboss.management.https.port=9993 -Djboss.http.port=8080 -Djboss.https.port=8443 -Djboss.ajp.port=8009"
-
9. Re: JBAS015810: failed to resolve interface public
teknopaul Feb 5, 2018 11:55 AM (in response to mpfontana)Just for the record
everything under 127. should be the localhost interface and you should be able to bind to it. You dont have to do anything special for this to work in most operating systems.
e.g. this on windowsnew ServerSocket().bind(new InetSocketAddress("127.0.2.1", 8080));
λ netstat -an | grep 8080
TCP 127.0.2.1:8080 0.0.0.0:0 LISTENING