[
https://issues.jboss.org/browse/AS7-1039?page=com.atlassian.jira.plugin.s...
]
Darran Lofthouse updated AS7-1039:
----------------------------------
Description:
If hostname is not pingable (such as a made-up value like "cheezel" or a FQDN
like "dhcp-111-bne.redhat.com"), the AS fails to start in domain mode, with a
bindException. If I change the hostname to "localhost", the AS starts fine.
AS starts in standalone mode regardless.
{noformat}
[mstanley@dhcp-1-111 bin]$ ./domain.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/mstanley/git/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT
JAVA: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64//bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
-Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman
=========================================================================
09:47:32,049 INFO [org.jboss.modules] (main) JBoss Modules version 1.0.0.CR3
Exception in thread "main" java.net.BindException: Cannot assign requested
address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at org.jboss.as.protocol.ProtocolServer.start(ProtocolServer.java:121)
at org.jboss.as.process.ProcessController.<init>(ProcessController.java:77)
at org.jboss.as.process.Main.start(Main.java:150)
at org.jboss.as.process.Main.main(Main.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:313)
{noformat}
was:
If hostname is not pingable (such as a made-up value like "cheezel" or a FQDN
like "dhcp-111-bne.redhat.com"), the AS fails to start in domain mode, with a
bindException. If I change the hostname to "localhost", the AS starts fine.
AS starts in standalone mode regardless.
See the error at
http://fpaste.org/xawH/.
AS fails to boot if hostname is not pingable
--------------------------------------------
Key: AS7-1039
URL:
https://issues.jboss.org/browse/AS7-1039
Project: Application Server 7
Issue Type: Bug
Components: Server
Affects Versions: Open To Community
Environment: Fedora 15
Reporter: Misty Stanley-Jones
Fix For: Open To Community
If hostname is not pingable (such as a made-up value like "cheezel" or a FQDN
like "dhcp-111-bne.redhat.com"), the AS fails to start in domain mode, with a
bindException. If I change the hostname to "localhost", the AS starts fine.
AS starts in standalone mode regardless.
{noformat}
[mstanley@dhcp-1-111 bin]$ ./domain.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/mstanley/git/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT
JAVA: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64//bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
-Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman
=========================================================================
09:47:32,049 INFO [org.jboss.modules] (main) JBoss Modules version 1.0.0.CR3
Exception in thread "main" java.net.BindException: Cannot assign requested
address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
at java.net.ServerSocket.bind(ServerSocket.java:336)
at org.jboss.as.protocol.ProtocolServer.start(ProtocolServer.java:121)
at org.jboss.as.process.ProcessController.<init>(ProcessController.java:77)
at org.jboss.as.process.Main.start(Main.java:150)
at org.jboss.as.process.Main.main(Main.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:313)
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira