-
15. Re: How to hot deploy and run warfile stepwise...
pradeepn Jun 16, 2012 2:14 AM (in response to pradeepn)is there any log file where i can check where i'm going wrong.
-
16. Re: How to hot deploy and run warfile stepwise...
wdfink Jun 16, 2012 5:52 AM (in response to pradeepn)Try this address for download http://www.jboss.org/jbossas/downloads
-
17. Re: How to hot deploy and run warfile stepwise...
wdfink Jun 16, 2012 5:57 AM (in response to pradeepn)1 of 1 people found this helpfulWhat you might do is to remove the first line of the run.bat script
@echo off
After that you will see all command executions from the script, maybe that will help.
But do you intall a Java into a directory without spaces? I remember that this might be a problem.
-
18. Re: How to hot deploy and run warfile stepwise...
pradeepn Jun 19, 2012 12:42 AM (in response to wdfink)I removed @echo off and i observer in cosole :
C:\>cd jboss-5.1.0.GA\bin
C:\jboss-5.1.0.GA\bin>run
C:\jboss-5.1.0.GA\bin>rem ------------------------------------------------------
-------------------
C:\jboss-5.1.0.GA\bin>rem JBoss Bootstrap Script for Windows
C:\jboss-5.1.0.GA\bin>rem ------------------------------------------------------
-------------------
C:\jboss-5.1.0.GA\bin>rem $Id: run.bat 88978 2009-05-16 18:18:45Z alex.loubyansk
C:\jboss-5.1.0.GA\bin>if "Windows_NT" == "Windows_NT" (set "DIRNAME=C:\jboss-5.1
.0.GA\bin\" ) else (set DIRNAME=.\ )
C:\jboss-5.1.0.GA\bin>rem Read an optional configuration file.
C:\jboss-5.1.0.GA\bin>if "x" == "x" (set "RUN_CONF=C:\jboss-5.1.0.GA\bin\run.con
f.bat" )
C:\jboss-5.1.0.GA\bin>if exist "C:\jboss-5.1.0.GA\bin\run.conf.bat" (
echo Calling C:\jboss-5.1.0.GA\bin\run.conf.bat
call "C:\jboss-5.1.0.GA\bin\run.conf.bat"
) else (echo Config file not found C:\jboss-5.1.0.GA\bin\run.conf.bat )
Calling C:\jboss-5.1.0.GA\bin\run.conf.bat
C:\jboss-5.1.0.GA\bin>rem ### -*- batch file -*- ###############################
#######################
C:\jboss-5.1.0.GA\bin>rem #
##
C:\jboss-5.1.0.GA\bin>rem # JBoss Bootstrap Script Configuration
##
C:\jboss-5.1.0.GA\bin>rem #
##
C:\jboss-5.1.0.GA\bin>rem ######################################################
#######################
C:\jboss-5.1.0.GA\bin>rem # $Id: run.conf.bat 88820 2009-05-13 15:25:44Z dimitri
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # This batch file is executed by run.bat to initialize
the environment
C:\jboss-5.1.0.GA\bin>rem # variables that run.bat uses. It is recommended to us
e this file to
C:\jboss-5.1.0.GA\bin>rem # configure these variables, rather than modifying run
.bat itself.
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>if not "x" == "x" goto JAVA_OPTS_SET
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # Specify the JBoss Profiler configuration file to loa
d.
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # Default is to not load a JBoss Profiler configuratio
n file.
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem set "PROFILER=C:\jboss-5.0.1.GA\bin\jboss-profiler.pro
perties"
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # Specify the location of the Java home directory (it
is recommended that
C:\jboss-5.1.0.GA\bin>rem # this always be set). If set, then "C:\Program Files\
Java\jdk1.6.0_06\bin\java" will be used as
C:\jboss-5.1.0.GA\bin>rem # the Java VM executable; otherwise, "" will be used (
see below).
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem set "JAVA_HOME=C:\opt\jdk1.6.0_13"
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # Specify the exact Java VM executable to use - only u
sed if JAVA_HOME is
C:\jboss-5.1.0.GA\bin>rem # not set. Default is "java".
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem set "JAVA=C:\opt\jdk1.6.0_13\bin\java"
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # Specify options to pass to the Java VM. Note, there
are some additional
C:\jboss-5.1.0.GA\bin>rem # options that are always passed by run.bat.
C:\jboss-5.1.0.GA\bin>rem #
C:\jboss-5.1.0.GA\bin>rem # JVM memory allocation pool parameters - modify as ap
propriate.
C:\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M"
C:\jboss-5.1.0.GA\bin>rem # Reduce the RMI GCs to once per hour for Sun JVMs.
C:\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsu
n.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
C:\jboss-5.1.0.GA\bin>rem # Warn when resolving remote XML DTDs or schemas.
C:\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsu
n.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dor
g.jboss.resolver.warning=true"
C:\jboss-5.1.0.GA\bin>rem # Sample JPDA settings for remote socket debugging
C:\jboss-5.1.0.GA\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Dorg.jboss.resolver.warning=true -Xrunjdwp:transport=dt_socket,address=8787,ser
ver=y,suspend=n"
C:\jboss-5.1.0.GA\bin>rem # Sample JPDA settings for shared memory debugging
C:\jboss-5.1.0.GA\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Dorg.jboss.resolver.warning=true -Xrunjdwp:transport=dt_shmem,address=jboss,ser
ver=y,suspend=n"
C:\jboss-5.1.0.GA\bin>pushd C:\jboss-5.1.0.GA\bin\..
C:\jboss-5.1.0.GA>if "xC:\jboss-5.0.1.GA" == "x" (set "JBOSS_HOME=C:\jboss-5.1.0
.GA" )
C:\jboss-5.1.0.GA>popd
C:\jboss-5.1.0.GA\bin>set DIRNAME=
C:\jboss-5.1.0.GA\bin>if "Windows_NT" == "Windows_NT" (set "PROGNAME=run.bat" )
else (set "PROGNAME=run.bat" )
C:\jboss-5.1.0.GA\bin>if "x-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.
client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.re
solver.warning=true" == "x" (set "JAVA_OPTS=-Dprogram.name=run.bat" ) else (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:\jboss-5.1.0.GA\bin>if "xC:\Program Files\Java\jdk1.6.0_06" == "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:\Program Files\Java\jdk1.6.0_06\bin\java"
if exist "C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar" (set "JAVAC_JAR=C:\P
rogram Files\Java\jdk1.6.0_06\lib\tools.jar" )
)
C:\jboss-5.1.0.GA\bin>rem Add -server to the JVM options, if supported
C:\jboss-5.1.0.GA\bin>"C:\Program Files\Java\jdk1.6.0_06\bin\java" -server -vers
ion 2>&1 | findstr /I hotspot 1>nul
C:\jboss-5.1.0.GA\bin>if not errorlevel 1 (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 -serve
r" )
C:\jboss-5.1.0.GA\bin>rem Set Java platform if 64-Bit JVM used
C:\jboss-5.1.0.GA\bin>set JAVA_PLATFORM=
C:\jboss-5.1.0.GA\bin>"C:\Program Files\Java\jdk1.6.0_06\bin\java" -version 2>
&1 | findstr /I "64-Bit ^| x86_64" 1>nul
C:\jboss-5.1.0.GA\bin>if not errorlevel 1 (if /I "x86" == "IA64" (set JAVA_PLATF
ORM=i64 ) else if /I "x86" == "AMD64" (set JAVA_PLATFORM=x64 ) else if /I "x86
" == "x64" (set JAVA_PLATFORM=x64 ) else if /I "" == "IA64" (set JAVA_PLATFORM=
i64 ) else if /I "" == "AMD64" (set JAVA_PLATFORM=x64 ) else (
echo PROCESSOR_ARCHITECTURE is not set. Unexpected results may occur.
echo Set PROCESSOR_ARCHITECTURE according to the 64-Bit JVM used.
) )
C:\jboss-5.1.0.GA\bin>if "x" == "x" set JAVA_PLATFORM=x86
C:\jboss-5.1.0.GA\bin>rem Add native to the PATH if present
C:\jboss-5.1.0.GA\bin>set JBOSS_NATIVE_LOC=
C:\jboss-5.1.0.GA\bin>if exist "C:\jboss-5.0.1.GA\bin\META-INF\lib\windows-x86"
(set "JBOSS_NATIVE_HOME=C:\jboss-5.0.1.GA\bin\META-INF\lib\windows-x86" ) else
if exist "C:\jboss-5.0.1.GA\bin\native" (set "JBOSS_NATIVE_HOME=C:\jboss-5.0.1.G
A\bin\native" )
C:\jboss-5.1.0.GA\bin>if not "x" == "x" (
set "PATH=;"C:\Program Files\Microsoft SQL Server\90\NotificationServices\9.0.24
2\Bin";C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\
Java\jdk1.6.0_06\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Pro
gram Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Se
rver\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Co
mmon7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssembl
ies\;C:\jboss-5.1.0.GA\bin;;C:\jboss-5.0.1.GA\bin"
set JAVA_OPTS=-Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Ds
un.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Do
rg.jboss.resolver.warning=true -server "-Djava.library.path=;"C:\Program Files\M
icrosoft SQL Server\90\NotificationServices\9.0.242\Bin";C:\WINDOWS\system32;C:\
WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_06\bin;C:\Progra
m Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Serve
r\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program F
iles\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Mi
crosoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\jboss-5.1.0.GA\bin;;C:
\jboss-5.0.1.GA\bin"
)
C:\jboss-5.1.0.GA\bin>rem Find run.jar, or we can't continue
C:\jboss-5.1.0.GA\bin>if exist "C:\jboss-5.0.1.GA\bin\run.jar" (if "xC:\Program
Files\Java\jdk1.6.0_06\lib\tools.jar" == "x" (set "RUNJAR=C:\jboss-5.0.1.GA\bin\
run.jar" ) else (set "RUNJAR=C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar;C
:\jboss-5.0.1.GA\bin\run.jar" ) ) else (
echo Could not locate "C:\jboss-5.0.1.GA\bin\run.jar".
echo Please check that you are in the bin directory when running this script.
goto END
)
Could not locate "C:\jboss-5.0.1.GA\bin\run.jar".
Please check that you are in the bin directory when running this script.
C:\jboss-5.1.0.GA\bin>if "x" == "x" pause
Press any key to continue . . .
C:\jboss-5.1.0.GA\bin>
I've installed java in c:/program file/java/jdk1.6, is it because of space in program files it's not working ? but in above cosole it is showing any error w.r.t. JAVA home directory >
-
19. Re: How to hot deploy and run warfile stepwise...
wdfink Jun 19, 2012 2:03 AM (in response to pradeepn)Yes.
As I said in my post before install Java in a directory without ' ' set JAVA_HOME and re-test it !!
-
20. Re: How to hot deploy and run warfile stepwise...
pradeepn Sep 25, 2012 6:30 AM (in response to pradeepn)Thanks for the above reply's guys, esp. Peter Johnson and Wolf-Dieter Fink mainly, Now i'm able to install succefully. initially i thought I've to set path and class path manually, but when I removed "echo off" from run.bat and saw all the path are set by JBOSS automatically. Also I went through the link
--> http://docs.jboss.org/jbossesb/docs/4.9/manuals/html/Getting_Started_Guide/index.html to fix few error in JBOSS 5.1.0 GA. now i'm able to see JBoss screen. now problem is even though i've deployed warfile in .......servers/default/deploy folder i'm not able to see my warfile in http://localhost:8080/status?full=true Link. plz help
Thank You.