-
1. The console/command window disappears (jboss via run.bat)
peterj Feb 3, 2011 10:06 AM (in response to good_med)I am guessing thast you are double-clicking the run.bat file. Don't! Instead, open a Command Prompt window, cd to the bin direcory and enter run.bat. Also, you might want to comment out the "@echo off" line in run.bat so that you can see where the error is. If you can't figure it out, copy and paste the full command line output, including the command you entered, to the forum.
-
2. The console/command window disappears (jboss via run.bat)
good_med Feb 3, 2011 10:19 AM (in response to peterj)thank you Peter but still the same problem, I've commented "@echo off" (rem echo off)
Here is a copy of what he posted<<<
C:\java\jboss-4.2.0.GA\bin>run.bat
C:\java\jboss-4.2.0.GA\bin>rem echo off
C:\java\jboss-4.2.0.GA\bin>rem -------------------------------------------------------------------------
C:\java\jboss-4.2.0.GA\bin>rem JBoss Bootstrap Script for Win32
C:\java\jboss-4.2.0.GA\bin>rem -------------------------------------------------------------------------
C:\java\jboss-4.2.0.GA\bin>rem $Id: run.bat 60996 2007-02-28 13:44:01Z dimitris@jboss.org $
C:\java\jboss-4.2.0.GA\bin>set DIRNAME=.\
C:\java\jboss-4.2.0.GA\bin>if "Windows_NT" == "Windows_NT" set DIRNAME=C:\java\jboss-4.2.0.GA\bin\
C:\java\jboss-4.2.0.GA\bin>set PROGNAME=run.bat
C:\java\jboss-4.2.0.GA\bin>if "Windows_NT" == "Windows_NT" set PROGNAME=run.bat
C:\java\jboss-4.2.0.GA\bin>pushd C:\java\jboss-4.2.0.GA\bin\..
C:\java\jboss-4.2.0.GA>set JBOSS_HOME=C:\java\jboss-4.2.0.GA
C:\java\jboss-4.2.0.GA>popd
C:\java\jboss-4.2.0.GA\bin>REM Add bin/native to the PATH if present
C:\java\jboss-4.2.0.GA\bin>if exist "C:\java\jboss-4.2.0.GA\bin\native" set PATH=C:\java\jboss-4.2.0.GA\bin\native;C:\Pr
ogram Files\Java\jre1.5.0_11\bin;C:\java\jboss-5.0.0.GA\bin;C:\Program Files\Nmap
C:\java\jboss-4.2.0.GA\bin>if exist "C:\java\jboss-4.2.0.GA\bin\native" set JAVA_OPTS= -Djava.library.path=C:\java\jboss
-4.2.0.GA\bin\native
C:\java\jboss-4.2.0.GA\bin>rem Read all command line arguments
C:\java\jboss-4.2.0.GA\bin>REM
C:\java\jboss-4.2.0.GA\bin>REM The env variable commented out in favor of using to include
C:\java\jboss-4.2.0.GA\bin>REM all args in java command line. See bug #840239. [jpl]
C:\java\jboss-4.2.0.GA\bin>REM
C:\java\jboss-4.2.0.GA\bin>REM set ARGS=
C:\java\jboss-4.2.0.GA\bin>REM :loop
C:\java\jboss-4.2.0.GA\bin>REM if [] == [] goto endloop
C:\java\jboss-4.2.0.GA\bin>REM set ARGS=
C:\java\jboss-4.2.0.GA\bin>REM shift
C:\java\jboss-4.2.0.GA\bin>REM goto loop
C:\java\jboss-4.2.0.GA\bin>REM :endloop
C:\java\jboss-4.2.0.GA\bin>rem Find run.jar, or we can't continue
C:\java\jboss-4.2.0.GA\bin>set RUNJAR=C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>if exist "C:\java\jboss-4.2.0.GA\bin\run.jar" goto FOUND_RUN_JAR
C:\java\jboss-4.2.0.GA\bin>if not "C:\Program Files\Java\jre1.5.0_11" == "" goto ADD_TOOLS
C:\java\jboss-4.2.0.GA\bin>set JAVA=C:\Program Files\Java\jre1.5.0_11\bin\java
C:\java\jboss-4.2.0.GA\bin>rem A full JDK with toos.jar is not required anymore since jboss web packages
C:\java\jboss-4.2.0.GA\bin>rem the eclipse jdt compiler and javassist has its own internal compiler.
C:\java\jboss-4.2.0.GA\bin>if not exist "C:\Program Files\Java\jre1.5.0_11\lib\tools.jar" goto SKIP_TOOLS
C:\java\jboss-4.2.0.GA\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
C:\java\jboss-4.2.0.GA\bin>rem result in including the local directory in the classpath, which makes
C:\java\jboss-4.2.0.GA\bin>rem error tracking harder.
C:\java\jboss-4.2.0.GA\bin>if not "" == "" set RUNJAR=;C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>if "" == "" set RUN_CLASSPATH=C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>if "C:\java\jboss-4.2.0.GA\bin\run.jar" == "" set RUN_CLASSPATH=;C:\java\jboss-4.2.0.GA\bin\r
un.jar
C:\java\jboss-4.2.0.GA\bin>set JBOSS_CLASSPATH=C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>rem Setup JBoss specific properties
C:\java\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat
C:\java\jboss-4.2.0.GA\bin>rem Add -server to the JVM options, if supported
C:\java\jboss-4.2.0.GA\bin>"C:\Program Files\Java\jre1.5.0_11\bin\java" -version 2>&1 | findstr /I hotspot 1>nul
'findstr' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
C:\java\jboss-4.2.0.GA\bin>
>>>
-
3. The console/command window disappears (jboss via run.bat)
peterj Feb 3, 2011 10:40 AM (in response to good_med)See if this helps:
http://www.coderanch.com/t/477910/JBoss/Cant-Start-JBOSS-Run-bat#2143275
-
4. Re: The console/command window disappears (jboss via run.bat)
peterj Feb 3, 2011 11:09 AM (in response to peterj)1 of 1 people found this helpfulI looked at the link I provided, and the links provided in that link, but didn't run across the posting that gave one of the solutions I was hopig to see. So here is some more info:
You have the findstr problem. You have two choices:
1) Find findstr and put it in your path
2) Comment out the lines that use findstr, then that part of the run.bat script will look like
rem Add -server to the JVM options, if supported
rem "%JAVA%" -server -version 2>&1 | findstr /I hotspot > nul
rem if not errorlevel == 1 (
set "JAVA_OPTS=%JAVA_OPTS% -server"
rem )
You might still get an error on '-server' not recognized. If that happens, comment out the 'set' line above also.
-
5. The console/command window disappears (jboss via run.bat)
good_med Feb 3, 2011 12:04 PM (in response to peterj)same problem
my path: %JAVA_HOME%\bin;%JBOSS_HOME%\bin;C:\WINDOWS\system32\FindStr.exe;C:\WINDOWS\system32
<<
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Moughaoui>cd c:\java\jboss-4.2.0.GA\bin
C:\java\jboss-4.2.0.GA\bin>run.bat
C:\java\jboss-4.2.0.GA\bin>rem echo off
C:\java\jboss-4.2.0.GA\bin>rem -------------------------------------------------------------------------
C:\java\jboss-4.2.0.GA\bin>rem JBoss Bootstrap Script for Win32
C:\java\jboss-4.2.0.GA\bin>rem -------------------------------------------------------------------------
C:\java\jboss-4.2.0.GA\bin>rem $Id: run.bat 60996 2007-02-28 13:44:01Z dimitris@jboss.org $
C:\java\jboss-4.2.0.GA\bin>set DIRNAME=.\
C:\java\jboss-4.2.0.GA\bin>if "Windows_NT" == "Windows_NT" set DIRNAME=C:\java\jboss-4.2.0.GA\bin\
C:\java\jboss-4.2.0.GA\bin>set PROGNAME=run.bat
C:\java\jboss-4.2.0.GA\bin>if "Windows_NT" == "Windows_NT" set PROGNAME=run.bat
C:\java\jboss-4.2.0.GA\bin>pushd C:\java\jboss-4.2.0.GA\bin\..
C:\java\jboss-4.2.0.GA>set JBOSS_HOME=C:\java\jboss-4.2.0.GA
C:\java\jboss-4.2.0.GA>popd
C:\java\jboss-4.2.0.GA\bin>REM Add bin/native to the PATH if present
C:\java\jboss-4.2.0.GA\bin>if exist "C:\java\jboss-4.2.0.GA\bin\native" set PATH=C:\java\jboss-4.2.0.GA\bin\native;C:\java\jre6\bin;C:\java\jboss-4.2.0.GA\bin;C
:\WINDOWS\system32\FindStr.exe;C:\WINDOWS\system32;C:\Program Files\Nmap
C:\java\jboss-4.2.0.GA\bin>if exist "C:\java\jboss-4.2.0.GA\bin\native" set JAVA_OPTS= -Djava.library.path=C:\java\jboss-4.2.0.GA\bin\native
C:\java\jboss-4.2.0.GA\bin>rem Read all command line arguments
C:\java\jboss-4.2.0.GA\bin>REM
C:\java\jboss-4.2.0.GA\bin>REM The env variable commented out in favor of using to include
C:\java\jboss-4.2.0.GA\bin>REM all args in java command line. See bug #840239. [jpl]
C:\java\jboss-4.2.0.GA\bin>REM
C:\java\jboss-4.2.0.GA\bin>REM set ARGS=
C:\java\jboss-4.2.0.GA\bin>REM :loop
C:\java\jboss-4.2.0.GA\bin>REM if [] == [] goto endloop
C:\java\jboss-4.2.0.GA\bin>REM set ARGS=
C:\java\jboss-4.2.0.GA\bin>REM shift
C:\java\jboss-4.2.0.GA\bin>REM goto loop
C:\java\jboss-4.2.0.GA\bin>REM :endloop
C:\java\jboss-4.2.0.GA\bin>rem Find run.jar, or we can't continue
C:\java\jboss-4.2.0.GA\bin>set RUNJAR=C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>if exist "C:\java\jboss-4.2.0.GA\bin\run.jar" goto FOUND_RUN_JAR
C:\java\jboss-4.2.0.GA\bin>if not "C:\java\jre6" == "" goto ADD_TOOLS
C:\java\jboss-4.2.0.GA\bin>set JAVA=C:\java\jre6\bin\java
C:\java\jboss-4.2.0.GA\bin>rem A full JDK with toos.jar is not required anymore since jboss web packages
C:\java\jboss-4.2.0.GA\bin>rem the eclipse jdt compiler and javassist has its own internal compiler.
C:\java\jboss-4.2.0.GA\bin>if not exist "C:\java\jre6\lib\tools.jar" goto SKIP_TOOLS
C:\java\jboss-4.2.0.GA\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
C:\java\jboss-4.2.0.GA\bin>rem result in including the local directory in the classpath, which makes
C:\java\jboss-4.2.0.GA\bin>rem error tracking harder.
C:\java\jboss-4.2.0.GA\bin>if not "" == "" set RUNJAR=;C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>if "" == "" set RUN_CLASSPATH=C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>if "C:\java\jboss-4.2.0.GA\bin\run.jar" == "" set RUN_CLASSPATH=;C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>set JBOSS_CLASSPATH=C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>rem Setup JBoss specific properties
C:\java\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat
C:\java\jboss-4.2.0.GA\bin>rem Add -server to the JVM options, if supported
C:\java\jboss-4.2.0.GA\bin>"C:\java\jre6\bin\java" -version 2>&1 | findstr /I hotspot 1>nul
C:\java\jboss-4.2.0.GA\bin>if not errorlevel 1 (set JAVA_OPTS= -Dprogram.name=run.bat -server )
C:\java\jboss-4.2.0.GA\bin>rem JVM memory allocation pool parameters. Modify as appropriate.
C:\java\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat -server -Xms128m -Xmx512m
C:\java\jboss-4.2.0.GA\bin>rem With Sun JVMs reduce the RMI GCs to once per hour
C:\java\jboss-4.2.0.GA\bin>set JAVA_OPTS= -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterv
al=3600000
C:\java\jboss-4.2.0.GA\bin>rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
C:\java\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 -server -Xms128m -Xmx
512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
C:\java\jboss-4.2.0.GA\bin>rem Setup the java endorsed dirs
C:\java\jboss-4.2.0.GA\bin>set JBOSS_ENDORSED_DIRS=C:\java\jboss-4.2.0.GA\lib\endorsed
C:\java\jboss-4.2.0.GA\bin>echo ===============================================================================
===============================================================================
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>echo JBoss Bootstrap Environment
JBoss Bootstrap Environment
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>echo JBOSS_HOME: C:\java\jboss-4.2.0.GA
JBOSS_HOME: C:\java\jboss-4.2.0.GA
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>echo JAVA: C:\java\jre6\bin\java
JAVA: C:\java\jre6\bin\java
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>echo JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcIn
terval=3600000
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>echo CLASSPATH: C:\java\jboss-4.2.0.GA\bin\run.jar
CLASSPATH: C:\java\jboss-4.2.0.GA\bin\run.jar
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>echo ===============================================================================
===============================================================================
C:\java\jboss-4.2.0.GA\bin>echo.
C:\java\jboss-4.2.0.GA\bin>"C:\java\jre6\bin\java" -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.serve
r.gcInterval=3600000 "-Djava.endorsed.dirs=C:\java\jboss-4.2.0.GA\lib\endorsed" -classpath "C:\java\jboss-4.2.0.GA\bin\run.jar" org.jboss.Main
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/system/server/NoAnnotationURLClassLoader
at org.jboss.system.server.ServerLoader.load(ServerLoader.java:263)
at org.jboss.Main.boot(Main.java:194)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Unknown Source)
C:\java\jboss-4.2.0.GA\bin>if ERRORLEVEL 10 goto RESTART
C:\java\jboss-4.2.0.GA\bin>if "" == "" pause
Appuyez sur une touche pour continuer...
>>
-
6. Re: The console/command window disappears (jboss via run.bat)
peterj Feb 3, 2011 12:35 PM (in response to good_med)same problem
No, different problem.You got beyond the findstr problem and now have run into something else - org/jboss/system/server/NoAnnotationURLClassLoader not found. But that class should be in the run.jar, which is in your classpath (see the echo statement near the end of the run.bat output you posted). The org.jboss.Main class is in the same run.jar
While I research this a little more, see if you can get 5.1.0 or 6.0 to run.
By the way, you should not run 4.2.0 or 5.0.0, you should use 4.2.3 or 5.1.0 instead - those have the latest patches for that level. And when you download 4.2.3 or 5.1.0, make sure you choose the zip file with 'jdk6' in the name - that is the one built for JDK 6, which you are using.
-
7. The console/command window disappears (jboss via run.bat)
good_med Feb 3, 2011 12:46 PM (in response to peterj)thank you Peter for your help and your answers, with the jboss-6.0.0 here is what I show:
<<<<<<<<<<<<<<<<<<<<<<
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Moughaoui>cd c:\java\jboss-6.0.0\bin
C:\java\jboss-6.0.0\bin>run.bat
C:\java\jboss-6.0.0\bin>rem @echo off
C:\java\jboss-6.0.0\bin>rem -------------------------------------------------------------------------
C:\java\jboss-6.0.0\bin>rem JBoss Bootstrap Script for Windows
C:\java\jboss-6.0.0\bin>rem -------------------------------------------------------------------------
C:\java\jboss-6.0.0\bin>rem $Id: run.bat 101685 2010-03-01 18:14:40Z mladen.turk@jboss.com $
C:\java\jboss-6.0.0\bin>if "Windows_NT" == "Windows_NT" (set "DIRNAME=C:\java\jboss-6.0.0\bin\" ) else (set DIRNAME=.\ )
C:\java\jboss-6.0.0\bin>rem Read an optional configuration file.
C:\java\jboss-6.0.0\bin>if "x" == "x" (set "RUN_CONF=C:\java\jboss-6.0.0\bin\run.conf.bat" )
C:\java\jboss-6.0.0\bin>if exist "C:\java\jboss-6.0.0\bin\run.conf.bat" (
echo Calling C:\java\jboss-6.0.0\bin\run.conf.bat
call "C:\java\jboss-6.0.0\bin\run.conf.bat"
) else (echo Config file not found C:\java\jboss-6.0.0\bin\run.conf.bat )
Calling C:\java\jboss-6.0.0\bin\run.conf.bat
C:\java\jboss-6.0.0\bin>rem ### -*- batch file -*- ######################################################
C:\java\jboss-6.0.0\bin>rem # ##
C:\java\jboss-6.0.0\bin>rem # JBoss Bootstrap Script Configuration ##
C:\java\jboss-6.0.0\bin>rem # ##
C:\java\jboss-6.0.0\bin>rem #############################################################################
C:\java\jboss-6.0.0\bin>rem # $Id: run.conf.bat 88820 2009-05-13 15:25:44Z dimitris@jboss.org $
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # This batch file is executed by run.bat to initialize the environment
C:\java\jboss-6.0.0\bin>rem # variables that run.bat uses. It is recommended to use this file to
C:\java\jboss-6.0.0\bin>rem # configure these variables, rather than modifying run.bat itself.
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>if not "x" == "x" goto JAVA_OPTS_SET
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # Specify the JBoss Profiler configuration file to load.
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # Default is to not load a JBoss Profiler configuration file.
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem set "PROFILER=C:\java\jboss-6.0.0\bin\jboss-profiler.properties"
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # Specify the location of the Java home directory (it is recommended that
C:\java\jboss-6.0.0\bin>rem # this always be set). If set, then "C:\java\jre6\bin\java" will be used as
C:\java\jboss-6.0.0\bin>rem # the Java VM executable; otherwise, "" will be used (see below).
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem set "JAVA_HOME=C:\opt\jdk1.6.0_13"
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # Specify the exact Java VM executable to use - only used if JAVA_HOME is
C:\java\jboss-6.0.0\bin>rem # not set. Default is "java".
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem set "JAVA=C:\opt\jdk1.6.0_13\bin\java"
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # Specify options to pass to the Java VM. Note, there are some additional
C:\java\jboss-6.0.0\bin>rem # options that are always passed by run.bat.
C:\java\jboss-6.0.0\bin>rem #
C:\java\jboss-6.0.0\bin>rem # JVM memory allocation pool parameters - modify as appropriate.
C:\java\jboss-6.0.0\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M"
C:\java\jboss-6.0.0\bin>rem # Reduce the RMI GCs to once per hour for Sun JVMs.
C:\java\jboss-6.0.0\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
C:\java\jboss-6.0.0\bin>rem # Warn when resolving remote XML DTDs or schemas.
C:\java\jboss-6.0.0\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -D
org.jboss.resolver.warning=true"
C:\java\jboss-6.0.0\bin>rem # Sample JPDA settings for remote socket debugging
C:\java\jboss-6.0.0\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=360000
0 -Dorg.jboss.resolver.warning=true -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
C:\java\jboss-6.0.0\bin>rem # Sample JPDA settings for shared memory debugging
C:\java\jboss-6.0.0\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=360000
0 -Dorg.jboss.resolver.warning=true -Xrunjdwp:transport=dt_shmem,address=jboss,server=y,suspend=n"
C:\java\jboss-6.0.0\bin>pushd C:\java\jboss-6.0.0\bin\..
C:\java\jboss-6.0.0>if "xC:\java\jboss-6.0.0" == "x" (set "JBOSS_HOME=C:\java\jboss-6.0.0" )
C:\java\jboss-6.0.0>popd
C:\java\jboss-6.0.0\bin>set DIRNAME=
C:\java\jboss-6.0.0\bin>if "Windows_NT" == "Windows_NT" (set "PROGNAME=run.bat" ) else (set "PROGNAME=run.bat" )
C:\java\jboss-6.0.0\bin>rem Setup JBoss specific properties
C:\java\jboss-6.0.0\bin>set JAVA_OPTS=-Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server
.gcInterval=3600000 -Dorg.jboss.resolver.warning=true
C:\java\jboss-6.0.0\bin>if "xC:\java\jre6" == "x" (
set JAVA=java
echo JAVA_HOME is not set. Unexpected results may occur.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
) else (
set "JAVA=C:\java\jre6\bin\java"
if exist "C:\java\jre6\lib\tools.jar" (set "JAVAC_JAR=C:\java\jre6\lib\tools.jar" )
)
C:\java\jboss-6.0.0\bin>rem Add -server to the JVM options, if supported
C:\java\jboss-6.0.0\bin>"C:\java\jre6\bin\java" -server -version 2>&1 | findstr /I hotspot 1>nul
C:\java\jboss-6.0.0\bin>if not errorlevel 1 (set "JAVA_OPTS=-Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=360000
0 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server" )
C:\java\jboss-6.0.0\bin>rem Add native to the PATH if present
C:\java\jboss-6.0.0\bin>set JBOSS_NATIVE_HOME=
C:\java\jboss-6.0.0\bin>set CHECK_NATIVE_HOME=
C:\java\jboss-6.0.0\bin>if exist "C:\java\jboss-6.0.0\bin\libtcnative-1.dll" (set "CHECK_NATIVE_HOME=C:\java\jboss-6.0.0\bin" ) else if exist "C:\java\jboss-6.
0.0\..\native\bin" (set "CHECK_NATIVE_HOME=C:\java\jboss-6.0.0\..\native\bin" ) else if exist "C:\java\jboss-6.0.0\bin\native\bin" (set "CHECK_NATIVE_HOME=C:\j
ava\jboss-6.0.0\bin\native\bin" )
C:\java\jboss-6.0.0\bin>if "x" == "x" goto WITHOUT_JBOSS_NATIVE
C:\java\jboss-6.0.0\bin>rem Find run.jar, or we can't continue
C:\java\jboss-6.0.0\bin>if exist "C:\java\jboss-6.0.0\bin\run.jar" (if "x" == "x" (set "RUNJAR=C:\java\jboss-6.0.0\bin\run.jar" ) else (set "RUNJAR=;C:\java\jb
oss-6.0.0\bin\run.jar" ) ) else (
echo Could not locate "C:\java\jboss-6.0.0\bin\run.jar".
echo Please check that you are in the bin directory when running this script.
goto END
)
C:\java\jboss-6.0.0\bin>rem If JBOSS_CLASSPATH empty, don't include it, as this will
C:\java\jboss-6.0.0\bin>rem result in including the local directory in the classpath, which makes
C:\java\jboss-6.0.0\bin>rem error tracking harder.
C:\java\jboss-6.0.0\bin>if "x" == "x" (set "RUN_CLASSPATH=C:\java\jboss-6.0.0\bin\run.jar" ) else (set "RUN_CLASSPATH=;C:\java\jboss-6.0.0\bin\run.jar" )
C:\java\jboss-6.0.0\bin>set JBOSS_CLASSPATH=C:\java\jboss-6.0.0\bin\run.jar
C:\java\jboss-6.0.0\bin>rem Setup JBoss specific properties
C:\java\jboss-6.0.0\bin>rem Setup the java endorsed dirs
C:\java\jboss-6.0.0\bin>set JBOSS_ENDORSED_DIRS=C:\java\jboss-6.0.0\lib\endorsed
C:\java\jboss-6.0.0\bin>echo ===============================================================================
===============================================================================
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>echo JBoss Bootstrap Environment
JBoss Bootstrap Environment
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>echo JBOSS_HOME: C:\java\jboss-6.0.0
JBOSS_HOME: C:\java\jboss-6.0.0
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>echo JAVA: C:\java\jre6\bin\java
JAVA: C:\java\jre6\bin\java
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>echo JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.se
rver.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server
JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg
.jboss.resolver.warning=true -server
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>echo CLASSPATH: C:\java\jboss-6.0.0\bin\run.jar
CLASSPATH: C:\java\jboss-6.0.0\bin\run.jar
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>echo ===============================================================================
===============================================================================
C:\java\jboss-6.0.0\bin>echo.
C:\java\jboss-6.0.0\bin>"C:\java\jre6\bin\java" -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.
dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server -Djava.endorsed.dirs="C:\java\jboss-6.0.0\lib\endorsed" -classpath "C:\java\jboss-
6.0.0\bin\run.jar" org.jboss.Main
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logmanager/Logger$AttachmentKey
at org.jboss.logging.JBossLogManagerProvider.<clinit>(JBossLogManagerProvider.java:36)
at org.jboss.logging.LoggerProviders.findProvider(LoggerProviders.java:33)
at org.jboss.logging.LoggerProviders.<clinit>(LoggerProviders.java:28)
at org.jboss.logging.Logger.getLogger(Logger.java:2164)
at org.jboss.logging.Logger.getLogger(Logger.java:2189)
at org.jboss.bootstrap.impl.base.server.AbstractServer.<clinit>(AbstractServer.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jboss.bootstrap.api.factory.SecurityActions$1.run(SecurityActions.java:95)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.bootstrap.api.factory.SecurityActions.newInstance(SecurityActions.java:75)
at org.jboss.bootstrap.api.factory.GenericFactory.createInstance(GenericFactory.java:97)
at org.jboss.bootstrap.api.factory.ServerFactory.createServer(ServerFactory.java:84)
at org.jboss.Main.boot(Main.java:439)
at org.jboss.Main$1.run(Main.java:805)
at java.lang.Thread.run(Unknown Source)
C:\java\jboss-6.0.0\bin>if ERRORLEVEL 10 goto RESTART
C:\java\jboss-6.0.0\bin>if "x" == "x" pause
Appuyez sur une touche pour continuer...
>>>>>>>>>>>>>>>>>>>>>>>
-
8. Re: The console/command window disappears (jboss via run.bat)
peterj Feb 3, 2011 12:52 PM (in response to good_med)You are picking up an old version of the logging jar file. Did you by any chance copy any jar files anythwre, perhaps to the 'endorsed' directory? I think that a similar thing was happening for 4.2.0.
-
9. Re: The console/command window disappears (jboss via run.bat)
peterj Feb 3, 2011 12:53 PM (in response to peterj)1 of 1 people found this helpfulSee this discussion:
-
10. The console/command window disappears (jboss via run.bat)
good_med Feb 4, 2011 6:27 AM (in response to peterj)thank you Johnson for the time you gave me, I reinstalled JDK and JBoss and now it works , merci 4 all
-
11. The console/command window disappears (jboss via run.bat)
peterj Feb 4, 2011 11:20 AM (in response to good_med)If that solved your problem, then most likely someone copied various JAR files to the JDK's endorsed directory. At least, that is what the problem was when I ran into a similar issue.