2 Replies Latest reply on Apr 25, 2005 7:26 AM by Brian Paxton

    Failed to get hostname on starting jboss - v.weird

    cmap Newbie

      hi
      I'm having a problem getting jboss to see the hostname which is mad.
      jboss 3.0.4 tomcat 4.1.12 jdk - tried a range of 1.4.1's and 1.4.2 still error.

      on any startup I get -

      15:43:11,994 ERROR [WebService] Failed to get localhost name
      java.net.UnknownHostException: server.domain: server.domain
      at java.net.InetAddress.getLocalHost(InetAddress.java:1191)

      This is linux fedora core 3, selinux not active, no firewall on, everything on the one box.

      /etc/hosts
      127.0.0.1 localhost localhost.localdomain
      x.x.x.x server.domain server

      /sbin/ifconfig

      eth0 Link encap:Ethernet HWaddr 00:0E:7F:7C:0B:4F
      inet addr:x.x.x.x

      /etc/sysconfig/network
      hostname=server.domain

      /etc/sysconfig/network-scripts/ifcfg-eth0

      DEVICE=eth0
      BOOTPROTO=static
      ONBOOT=yes
      TYPE=Ethernet
      HOSTNAME=server.domain
      IPADDR=x.x.x.x

      its set in /etc/nsswitch.conf for
      hosts files

      everything always tallies yet it can't find itself....any ideas ?
      Elaine