2 Replies Latest reply on Mar 31, 2008 2:34 AM by Syed Wahed

    jboss is shutting down automatically

    deepthi karri Newbie

      while i am starting my jboss it is going to be shut down.Imn my console i am getting below statements on console.I have configured my environment variables

      java_home=c:\programfiles\java\jdk1.5.0_06 and
      jboss_home=D:\jboss-4.2.0.GA\

      and os is windowsXP

      Please anyone tell me the solution




      D:\jboss-4.2.0.GA\bin>rem -------------------------------------------------------------------------

      D:\jboss-4.2.0.GA\bin>rem JBoss Bootstrap Script for Win32

      D:\jboss-4.2.0.GA\bin>rem -------------------------------------------------------------------------

      D:\jboss-4.2.0.GA\bin>rem $Id: run.bat 60996 2007-02-28 13:44:01Z dimitris@jboss.org $

      D:\jboss-4.2.0.GA\bin>set DIRNAME=.\

      D:\jboss-4.2.0.GA\bin>if "Windows_NT" == "Windows_NT" set DIRNAME=D:\jboss-4.2.0.GA\bin\

      D:\jboss-4.2.0.GA\bin>set PROGNAME=run.bat

      D:\jboss-4.2.0.GA\bin>if "Windows_NT" == "Windows_NT" set PROGNAME=run.bat

      D:\jboss-4.2.0.GA\bin>pushd D:\jboss-4.2.0.GA\bin\..

      D:\jboss-4.2.0.GA>set JBOSS_HOME=D:\jboss-4.2.0.GA

      D:\jboss-4.2.0.GA>popd

      D:\jboss-4.2.0.GA\bin>REM Add bin/native to the PATH if present

      D:\jboss-4.2.0.GA\bin>if exist "D:\jboss-4.2.0.GA\bin\native" set PATH=D:\jboss-4.2.0.GA\bin\native;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\WINDOWS\system32;C:\Program Files\Java\jdk1.5.0_06\bin;

      D:\jboss-4.2.0.GA\bin>if exist "D:\jboss-4.2.0.GA\bin\native" set JAVA_OPTS= -Djava.library.path=D:\jboss-4.2.0.GA\bin\native

      D:\jboss-4.2.0.GA\bin>rem Read all command line arguments

      D:\jboss-4.2.0.GA\bin>REM

      D:\jboss-4.2.0.GA\bin>REM The env variable commented out in favor of using to include

      D:\jboss-4.2.0.GA\bin>REM all args in java command line. See bug #840239. [jpl]

      D:\jboss-4.2.0.GA\bin>REM

      D:\jboss-4.2.0.GA\bin>REM set ARGS=

      D:\jboss-4.2.0.GA\bin>REM :loop

      D:\jboss-4.2.0.GA\bin>REM if [] == [] goto endloop

      D:\jboss-4.2.0.GA\bin>REM set ARGS=

      D:\jboss-4.2.0.GA\bin>REM shift

      D:\jboss-4.2.0.GA\bin>REM goto loop

      D:\jboss-4.2.0.GA\bin>REM :endloop

      D:\jboss-4.2.0.GA\bin>rem Find run.jar, or we can't continue

      D:\jboss-4.2.0.GA\bin>set RUNJAR=D:\jboss-4.2.0.GA\bin\run.jar

      D:\jboss-4.2.0.GA\bin>if exist "D:\jboss-4.2.0.GA\bin\run.jar" goto FOUND_RUN_JAR

      D:\jboss-4.2.0.GA\bin>if not "C:\Program Files\Java\jdk1.5.0_06\" == "" goto ADD_TOOLS

      D:\jboss-4.2.0.GA\bin>set JAVA=C:\Program Files\Java\jdk1.5.0_06\\bin\java

      D:\jboss-4.2.0.GA\bin>rem A full JDK with toos.jar is not required anymore since jboss web packages

      D:\jboss-4.2.0.GA\bin>rem the eclipse jdt compiler and javassist has its own internal compiler.

      D:\jboss-4.2.0.GA\bin>if not exist "C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar" goto SKIP_TOOLS

      D:\jboss-4.2.0.GA\bin>rem If exists, point to the JDK javac compiler in case the user wants to

      D:\jboss-4.2.0.GA\bin>rem later override the eclipse jdt compiler for compiling JSP pages.

      D:\jboss-4.2.0.GA\bin>set JAVAC_JAR=C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar

      D:\jboss-4.2.0.GA\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will

      D:\jboss-4.2.0.GA\bin>rem result in including the local directory in the classpath, which makes

      D:\jboss-4.2.0.GA\bin>rem error tracking harder.

      D:\jboss-4.2.0.GA\bin>if not "C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar" == "" set RUNJAR=C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar

      D:\jboss-4.2.0.GA\bin>if "" == "" set RUN_CLASSPATH=C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar

      D:\jboss-4.2.0.GA\bin>if "C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar" == "" set RUN_CLASSPATH=;C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar

      D:\jboss-4.2.0.GA\bin>set JBOSS_CLASSPATH=C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar

      D:\jboss-4.2.0.GA\bin>rem Setup JBoss specific properties

      D:\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat

      D:\jboss-4.2.0.GA\bin>rem JVM memory allocation pool parameters. Modify as appropriate.

      D:\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat -Xms128m -Xmx512m

      D:\jboss-4.2.0.GA\bin>rem With Sun JVMs reduce the RMI GCs to once per hour

      D:\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

      D:\jboss-4.2.0.GA\bin>rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.

      D:\jboss-4.2.0.GA\bin>rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

      D:\jboss-4.2.0.GA\bin>rem Setup the java endorsed dirs

      D:\jboss-4.2.0.GA\bin>set JBOSS_ENDORSED_DIRS=D:\jboss-4.2.0.GA\lib\endorsed

      D:\jboss-4.2.0.GA\bin>echo ===============================================================================
      ===============================================================================

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>echo JBoss Bootstrap Environment
      JBoss Bootstrap Environment

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>echo JBOSS_HOME: D:\jboss-4.2.0.GA
      JBOSS_HOME: D:\jboss-4.2.0.GA

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>echo JAVA: C:\Program Files\Java\jdk1.5.0_06\\bin\java
      JAVA: C:\Program Files\Java\jdk1.5.0_06\\bin\java

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>echo JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>echo CLASSPATH: C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar
      CLASSPATH: C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>echo ===============================================================================
      ===============================================================================

      D:\jboss-4.2.0.GA\bin>echo.


      D:\jboss-4.2.0.GA\bin>"C:\Program Files\Java\jdk1.5.0_06\\bin\java" -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 "-Djava.endorsed.dirs=D:\jboss-4.2.0.GA\lib\endorsed" -classpath "C:\Program Files\Java\jdk1.5.0_06\\lib\tools.jar;D:\jboss-4.2.0.GA\bin\run.jar" org.jboss.Main
      17:24:57,220 INFO [Server] Starting JBoss (MX MicroKernel)...
      17:24:57,236 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)
      17:24:57,236 INFO [Server] Home Dir: D:\jboss-4.2.0.GA
      17:24:57,236 INFO [Server] Home URL: file:/D:/jboss-4.2.0.GA/
      17:24:57,236 INFO [Server] Patch URL: null
      17:24:57,236 INFO [Server] Server Name: default
      17:24:57,236 INFO [Server] Server Home Dir: D:\jboss-4.2.0.GA\server\default
      17:24:57,236 INFO [Server] Server Home URL: file:/D:/jboss-4.2.0.GA/server/default/
      17:24:57,236 INFO [Server] Server Log Dir: D:\jboss-4.2.0.GA\server\default\log
      17:24:57,236 INFO [Server] Server Temp Dir: D:\jboss-4.2.0.GA\server\default\tmp
      17:24:57,236 INFO [Server] Root Deployment Filename: jboss-service.xml
      17:24:57,580 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
      17:24:57,580 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
      17:24:57,580 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      17:24:57,987 INFO [Server] Core system initialized
      17:24:59,726 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.2.0.GA/server/default/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      ... 36 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/logging/Logger
      at org.jnp.server.NamingBeanImpl.<clinit>(NamingBeanImpl.java:48)
      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:494)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:193)
      ... 38 more
      17:24:59,773 INFO [Server] Runtime shutdown hook called, forceHalt: true
      17:24:59,773 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      17:24:59,789 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM

      D:\jboss-4.2.0.GA\bin>if ERRORLEVEL 10 goto RESTART

      D:\jboss-4.2.0.GA\bin>if "" == "" pause
      Press any key to continue . . .


        • 1. Re: jboss is shutting down automatically
          Peter Johnson Master

          Two possibilities. First, get the JDK out of Program Files, having spaces in the path tends to give some Java libraries fits. You do not have to reinstall, just copy c:\program files\Java\jdk1.5.0_06 as c:\jdk1.5.0_06 and set JAVA_HOME to c:\jdk1.5.0_06.

          If that doesn't do the trick, then reinstall JBossAS by downloading the binary zip file again and unzipping it. (I have seen posts similar to your many times in the forums and reinstalling usually does the trick.)

          • 2. Re: jboss is shutting down automatically
            Syed Wahed Newbie

            I think there is not a problem with your Jdk installation and neither with JBoss. The problem lies in setting the Environmetal variables. It will work 101 % with challenge. Try this.

            --> Open Environmetal settings in system and edit ClassPath, Path, Java_HOme, Jboss_Home.

            --> Make sure in class path you are pointing to
            C:\Program Files\Java\Jdk1.5.0_06,
            C:\jdk1.5.0_06\lib;
            C:\jboss-4.2.0.GA\server\all\lib

            if taken C drive as your default for example

            --> Now set your Path variables which should point like this :
            C:\Program Files\Java\jdk1.5.0_06\bin;
            C:\jboss-3.2.5\bin\run.jar;

            Now in User variables set Java_Home to your java installation dir
            Now in User variables set Jboss_Home to your jboss installation dir

            Very Important :: Open Jboss installation folder and find run.bat file
            open it in edit mode and make sure the following are set there:


            echo ===============================================================================
            echo .
            echo JBoss Bootstrap Environment
            echo .
            echo JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
            echo .
            echo JBOSS_HOME: E:\jboss-3.2.5
            echo .
            echo JAVA: C:\Program Files\Java\jdk1.5.0_06
            echo .
            echo JAVA_OPTS: %JAVA_OPTS%
            echo .
            echo CLASSPATH: %JBOSS_CLASSPATH%
            echo .
            echo ===============================================================================

            the above can also be replaced with %Java_Home% also. and %Jboss_HOme%.

            Try this you will see success.
            Thanks
            wahed