0 Replies Latest reply on Mar 31, 2016 4:37 AM by Ahmed Lutful Kabir

    Wildfly 8.2.0 Final: why does jboss try to add a different host name even though "localhost" is available?

    Ahmed Lutful Kabir Newbie

      Hi,

       

      While starting the server in Linux,  I am getting an java.net.UnknownHostException (see the Log). I have found a solution in the following questions: https://developer.jboss.org/thread/199707?tstart=0, but my question is why does jboss try to add the host for example in my case "linux-4por"? Since "localhost" is always available, can I prevent Jboss to do so? Here is how the interfaces in "standalone.xml" looks like:


      <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>

      <interface name="unsecure">

      <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
      </interface>
      </interfaces>

       

      Log:

       

      2016-03-31 13:06:53,879 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 4.0.6.Final

      2016-03-31 13:06:53,954 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      2016-03-31 13:06:53,946 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.

      2016-03-31 13:06:53,942 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem

      2016-03-31 13:06:53,925 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem

      2016-03-31 13:06:53,917 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]

      2016-03-31 13:06:53,889 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.

      2016-03-31 13:06:54,095 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.1.0.Final starting

      2016-03-31 13:06:54,102 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 2 core threads with 16 task threads based on your 1 available processors

      2016-03-31 13:06:54,166 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)

      2016-03-31 13:06:54,192 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017502: Undertow 1.1.0.Final starting

      2016-03-31 13:06:54,287 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.21.Final

      2016-03-31 13:06:54,309 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.4)

      2016-03-31 13:06:54,414 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      2016-03-31 13:06:54,516 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path /opt/fpcs/as/welcome-content

      2016-03-31 13:06:54,530 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 48) JBAS014612: Operation ("add") failed - address: ([("subsystem" => "webservices")]): java.lang.RuntimeException: java.net.UnknownHostException: linux-4por: linux-4por

        at org.jboss.as.webservices.dmr.WSSubsystemAdd.createServerConfig(WSSubsystemAdd.java:104)

        at org.jboss.as.webservices.dmr.WSSubsystemAdd.performBoottime(WSSubsystemAdd.java:92)

        at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:69) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:75) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:660) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:501) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:298) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:293) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:354) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]

      Caused by: java.net.UnknownHostException: linux-4por: linux-4por

        at java.net.InetAddress.getLocalHost(InetAddress.java:1475) [rt.jar:1.7.0_79]

        at org.jboss.ws.common.management.AbstractServerConfig.setWebServiceHost(AbstractServerConfig.java:123)

        at org.jboss.as.webservices.config.ServerConfigImpl.setWebServiceHost(ServerConfigImpl.java:89)

        at org.jboss.as.webservices.dmr.WSSubsystemAdd.createServerConfig(WSSubsystemAdd.java:102)

        ... 12 more

      Caused by: java.net.UnknownHostException: linux-4por

        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) [rt.jar:1.7.0_79]

        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) [rt.jar:1.7.0_79]

        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1295) [rt.jar:1.7.0_79]

        at java.net.InetAddress.getLocalHost(InetAddress.java:1471) [rt.jar:1.7.0_79]

        ... 15 more