3 Replies Latest reply on May 29, 2003 10:41 AM by jonlee

    jboss on bsd

    columod

      hi all,
      i'm trying to install jboss (3.0.6) on a bsd server and i get the following error :

      00:30:03,879 INFO [Server] Core system initialized
      00:30:03,890 INFO [MainDeployer] Starting deployment of package: file:/home/codea/jboss-3.0.6_tomcat-4.1.18/server/all/conf/jboss-service.xml
      00:30:07,364 ERROR [WebService] Failed to get localhost name
      java.lang.NullPointerException
      at java.net.InetAddress.cacheAddress(InetAddress.java:648)
      at java.net.InetAddress.cacheAddress(InetAddress.java:633)
      at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
      at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
      at org.jboss.web.WebService.(WebService.java:85)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:812)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:293)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:165)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:128)
      at org.jboss.system.ServiceController.install(ServiceController.java:231)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:189)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)



      seems like a simple problem but i'm stuck ;-(
      any help greatly appreciated.
      colum.

        • 1. Re: jboss on bsd
          jonlee

          Do you have localhost defined in /etc/hosts? Tomcat is searching for a localhost definition so it can bind listeners to ports and is having trouble defining the service point.

          It is trying InetAddress.getLocalHost().getHostName() and failing to get anything for it.

          • 2. Re: jboss on bsd
            columod

            thanks for the reply.
            found the problem. all dev boxes on our system have a dash in the machine name which is causing a problem ;-(
            if i install on a production server (which don't have dashes!!) no problem
            cheers,
            colum.

            • 3. Re: jboss on bsd
              jonlee

              Have to store that one away. First time I've heard of that problem.