Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The console/command window disappears (jboss via run.bat)

 
Moughaoui Mohammed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone;

when trying to start the jboss-as-distribution-6.0.0.Final, jboss-5.0.0.GA or jboss-4.2.0.GA on windows via run.bat, the console/command window disappears but somehow it won't work anymore



I've set the correct path for JAVA_HOME (C:\java\jre6 OR C:\Program Files\Java\jre1.5.0_11), JBOSS_HOME and Path



Any ideas what I could have done wrong, or what is missing?



any clues!!!
Thank You in advance...
 
Moughaoui Mohammed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a copy of Command Prompt window:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

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...

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you run run.bat from the command line (instead of from windows explorer) does it work?
 
Moughaoui Mohammed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from windows explorer the console/command window disappears
but from console it displays the text above
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You asked what is missing? Here is the error message (from what you posted) which says exactly what is missing:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/system/server/NoAnnotationURLClassLoader
 
Moughaoui Mohammed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I reinstalled JDK and JBoss and now it works , merci 4 all
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic