5 Replies Latest reply on Apr 24, 2003 2:38 AM by arichter

    Starting JBoss 3.2 on Linux

    rgothan

      Just solved a problem where JBoss hung at startup. This was due to the fact that there was no entry in the /etc/hosts file or DNS entry resolving the host name to an IP address.

      Could the bootup should be tweaked to catch this error?

      R.

        • 1. Re: Starting JBoss 3.2 on Linux

          Can you show the stacktrace where it hangs.
          When I've seen this in the past, it dumped
          a NullPointerException

          Regards,
          Adrian

          • 2. Re: Starting JBoss 3.2 on Linux
            rgothan

            There was no stack trace... Jboss just hung on

            21:27:04,519 INFO [WebService] Starting

            Clearly it got stuck looking for the local IP address.


            Hope this helps
            Robert

            • 3. Re: Starting JBoss 3.2 on Linux

              Use ctrl-\ to get a threaddump, it will
              show the stacktrace.

              Regards,
              Adrian

              • 4. Re: Starting JBoss 3.2 on Linux
                arichter

                I am getting the same problem on Linux. I have set the /etc/hosts file already but still no luck.

                Here is the stack trace for you.

                Adrian Richter
                ================================================================================

                JBoss Bootstrap Environment

                JBOSS_HOME: /var/java/jboss-3.2.0

                JAVA: /usr/java//bin/java

                JAVA_OPTS: -server -Dprogram.name=run.sh

                CLASSPATH: /var/java/jboss-3.2.0/bin/run.jar:/usr/java//lib/tools.jar

                ================================================================================

                14:14:25,306 INFO [Server] Starting JBoss (MX MicroKernel)...
                14:14:25,308 INFO [Server] Release ID: JBoss [WonderLand] 3.2.0 (build: CVSTag=JBoss_3_2_0 date=200304110033)
                14:14:25,309 INFO [Server] Home Dir: /var/java/jboss-3.2.0
                14:14:25,309 INFO [Server] Home URL: file:/var/java/jboss-3.2.0/
                14:14:25,310 INFO [Server] Library URL: file:/var/java/jboss-3.2.0/lib/
                14:14:25,311 INFO [Server] Patch URL: null
                14:14:25,312 INFO [Server] Server Name: default
                14:14:25,312 INFO [Server] Server Home Dir: /var/java/jboss-3.2.0/server/default
                14:14:25,312 INFO [Server] Server Home URL: file:/var/java/jboss-3.2.0/server/default/
                14:14:25,313 INFO [Server] Server Data Dir: /var/java/jboss-3.2.0/server/default/data
                14:14:25,313 INFO [Server] Server Temp Dir: /var/java/jboss-3.2.0/server/default/tmp
                14:14:25,313 INFO [Server] Server Config URL: file:/var/java/jboss-3.2.0/server/default/conf/
                14:14:25,314 INFO [Server] Server Library URL: file:/var/java/jboss-3.2.0/server/default/lib/
                14:14:25,314 INFO [Server] Root Deployemnt Filename: jboss-service.xml
                14:14:25,320 INFO [Server] Starting General Purpose Architecture (GPA)...
                14:14:25,701 INFO [ServerInfo] Java version: 1.4.1_01,Sun Microsystems Inc.
                14:14:25,701 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.1_01-b01,Sun Microsystems Inc.
                14:14:25,702 INFO [ServerInfo] OS-System: Linux 2.4.18-24.8.0smp,i386
                14:14:25,757 INFO [ServiceController] Controller MBean online
                14:14:25,853 INFO [MainDeployer] Creating
                14:14:25,885 INFO [MainDeployer] Created
                14:14:25,887 INFO [MainDeployer] Starting
                14:14:25,888 INFO [MainDeployer] Started
                14:14:25,980 INFO [JARDeployer] Creating
                14:14:26,015 INFO [JARDeployer] Created
                14:14:26,016 INFO [JARDeployer] Starting
                14:14:26,017 INFO [MainDeployer] Adding deployer: org.jboss.deployment.JARDeployer@1ea5671
                14:14:26,017 INFO [JARDeployer] Started
                14:14:26,033 INFO [SARDeployer] Creating
                14:14:26,061 INFO [SARDeployer] Created
                14:14:26,062 INFO [SARDeployer] Starting
                14:14:26,062 INFO [MainDeployer] Adding deployer: org.jboss.deployment.SARDeployer@1b4fad5
                14:14:26,112 INFO [SARDeployer] Started
                14:14:26,112 INFO [Server] Core system initialized
                14:14:26,141 INFO [MainDeployer] Starting deployment of package: file:/var/java/jboss-3.2.0/server/default/conf/jboss-service.xml
                14:14:26,692 INFO [SARDeployer] looking for nested deployments in : file:/var/java/jboss-3.2.0/server/default/conf/jboss-service.xml
                14:14:29,391 INFO [Log4jService] Creating
                14:14:29,397 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
                14:14:29,643 INFO [Log4jService] Created
                14:14:29,651 INFO [WebService] Creating
                Full thread dump Java HotSpot(TM) Server VM (1.4.1_01-b01 mixed mode):

                "Thread-1" daemon prio=1 tid=0x0x4deb2648 nid=0x1708 in Object.wait() [4e22c000..4e22c830]
                at java.lang.Object.wait(Native Method)
                - waiting on <0x44c4bf30> (a java.util.TaskQueue)
                at java.util.TimerThread.mainLoop(Timer.java:429)
                - locked <0x44c4bf30> (a java.util.TaskQueue)
                at java.util.TimerThread.run(Timer.java:382)

                "DestroyJavaVM" prio=1 tid=0x0x8051c00 nid=0x16eb waiting on condition [0..bfffc340]

                "main" prio=1 tid=0x0x80ed9e8 nid=0x1706 in Object.wait() [4ce78000..4ce79830]
                at java.lang.Object.wait(Native Method)
                - waiting on <0x44b60088> (a java.util.HashMap)
                at java.lang.Object.wait(Object.java:426)
                at java.net.InetAddress.checkLookupTable(InetAddress.java:1046)
                - locked <0x44b60088> (a java.util.HashMap)
                at java.net.InetAddress.getAddressFromNameService(InetAddress.java:985)
                at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
                at org.jboss.web.WebService.createService(WebService.java:258)
                at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
                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:549)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
                at $Proxy0.create(Unknown Source)
                at org.jboss.system.ServiceController.create(ServiceController.java:310)
                - locked <0x44b73ba0> (a org.jboss.system.ServiceController)
                at org.jboss.system.ServiceController.create(ServiceController.java:243)
                - locked <0x44b73ba0> (a org.jboss.system.ServiceController)
                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:549)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
                at $Proxy5.create(Unknown Source)
                at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
                at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
                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:549)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
                at $Proxy6.deploy(Unknown Source)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:361)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:268)
                at org.jboss.Main.boot(Main.java:156)
                at org.jboss.Main$1.run(Main.java:394)
                at java.lang.Thread.run(Thread.java:536)

                "Signal Dispatcher" daemon prio=1 tid=0x0x80b0ea0 nid=0x1703 waiting on condition [0..0]

                "Finalizer" daemon prio=1 tid=0x0x80ab010 nid=0x1700 in Object.wait() [4c5d4000..4c5d4830]
                at java.lang.Object.wait(Native Method)
                - waiting on <0x44b28f18> (a java.lang.ref.ReferenceQueue$Lock)
                at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
                - locked <0x44b28f18> (a java.lang.ref.ReferenceQueue$Lock)
                at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
                at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

                "Reference Handler" daemon prio=1 tid=0x0x80aac80 nid=0x16ff in Object.wait() [4c553000..4c553830]
                at java.lang.Object.wait(Native Method)
                - waiting on <0x44b28ce0> (a java.lang.ref.Reference$Lock)
                at java.lang.Object.wait(Object.java:426)
                at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113)
                - locked <0x44b28ce0> (a java.lang.ref.Reference$Lock)

                "VM Thread" prio=1 tid=0x0x80a8220 nid=0x16fe runnable

                "VM Periodic Task Thread" prio=1 tid=0x0x80afb08 nid=0x1701 waiting on condition
                "Suspend Checker Thread" prio=1 tid=0x0x80b0470 nid=0x1702 runnable

                • 5. Re: Starting JBoss 3.2 on Linux
                  arichter

                  Some idiot changed the machine name didn't they!

                  Adrian Richter