2 Replies Latest reply on Jan 23, 2005 6:02 AM by chrismalan

    DHCP woes

    chrismalan

      Since getting the broadband JBoss does not start without problems anymore. I used to connect to the old computer via an ethernet card and use the dial-up modem of the old computer. An ISA modem which worked many years without problem. Now the same ethernet card is connected to the ASDL modem. My provider supports Dynamic Host Configuration Protocol.

      That means I get assigned a new IP address every time I boot up. My initial line in a term window looks like this: [chris@d220-236-86-83 chris]$

      /etc/hosts looks like this: 127.0.0.1 localhost
      That is all.

      The same exeption gets thrown in many places:

      11:59:18,831 ERROR [HttpInvokerHA] Starting failed
      java.net.UnknownHostException: d220-236-86-83.dsl.nsw.optusnet.com.au: d220-236-86-83.dsl.nsw.optusnet.com.au
      at java.net.InetAddress.getLocalHost(InetAddress.java:1191)

      The above is JBoss/Jetty 3.2.0

      In JBoss/Tomcat 4.0.0 the exception is:

      12:35:23,188 ERROR [CorbaORBService] Starting failed jboss:service=CorbaORB
      org.omg.CORBA.INITIALIZE: Could not resolve configured listener host vmcid: 0x0 minor code: 0 completed: No
      at org.jacorb.orb.iiop.IIOPListener.getHost(IIOPListener.java:436)

      With the summary at the end:

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss:service=CorbaORB
      state: FAILED
      I Depend On:
      Depends On Me: jboss:service=invoker,type=iiop
      jboss:service=CorbaNaming
      jboss:service=CorbaTransaction
      org.omg.CORBA.INITIALIZE: Could not resolve configured listener host vmcid: 0x0 minor code: 0 completed: No

      The UnknownHostException also gets thrown in JBoss4 if I start JBoss as -c all

      Should I add another line to /etc/hosts? If so, what form should it take?

      Thanks,

        • 1. Re: DHCP woes
          starksm64

          Whatever your hostname command returns needs to map to a valid interface so that is what is needed in the hosts file.

          • 2. Re: DHCP woes
            chrismalan

            Yep, that does it. Thanks Scott. Added
            "d22-236-171-17.dsl.nsw.optusnet.com.au 127.0.0.1"
            to /etc/hosts Hopefully I'll keep this "hostname" for a while.