users@glassfish.java.net

gfv3 asupgrade.bat fails to run

From: emiddio-verizon <emiddio_at_verizon.net>
Date: Mon, 26 Apr 2010 10:19:41 -0700

if i set JAVA_HOME it will run; JAVA_HOME not needed for asadmin.bat for
gfv3.

not needed for any commands used for derby or gfv2.x -- that i have used;

never used asupgrade.bat before;

changed "echo off" to "echo of" for both -- to show differences for
defalt invocations with JAVA_HOME not set;

i see "\\" in the output -- surprised that works and is not syntax error.

thanks
gary
===============================


asadmin.bat ---

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>asadmin

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Copyright 1997-2008 Sun
Microsystems, Inc. All rights reserved.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Use is subject to license
terms.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Always use JDK 1.6 or higher

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Depends on Java from
..\config\asenv.bat

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>VERIFY OTHER 2>nul

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>setlocal ENABLEEXTENSIONS

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>if ERRORLEVEL 0 goto ok

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>call
"C:\Sun\glassfish-3.0.1-b15\glassfish\bin\..\config\asenv.bat"

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM DO NOT ALTER OR REMOVE
COPYRIGHT NOTICES OR THIS HEADER.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Copyright 2004-2009 Sun
Microsystems, Inc. All rights reserved.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Use is subject to License Terms

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_IMQ_LIB=..\..\mq\lib

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_IMQ_BIN=..\..\mq\bin

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_CONFIG=..\config

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_INSTALL=..

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_DEF_DOMAINS_PATH=..\domains

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_DERBY_INSTALL=..\..\javadb

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>if "x" == "x" goto UsePath

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set JAVA=java

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>java -jar
"C:\Sun\glassfish-3.0.1-b15\glassfish\bin\..\modules\admin-cli.jar"
Use "exit" to exit and "help" for online help.
asadmin>



asupgrade.bat ----------

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>asupgrade

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Copyright (c) 1997, 2010
Oracle and/or its affiliates, Inc. All rights reserved.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Use is subject to license
terms.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>setlocal

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set
DIRNAME=C:\Sun\glassfish-3.0.1-b15\glassfish\bin\

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set
AS_INSTALL=C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set
AS_INSTALL_LIB=C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..\lib

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set
AS_INSTALL_MOD=C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..\modules

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set
CONFIG_HOME=C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..\config

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>call
"C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..\config\asenv.bat"

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM DO NOT ALTER OR REMOVE
COPYRIGHT NOTICES OR THIS HEADER.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Copyright 2004-2009 Sun
Microsystems, Inc. All rights reserved.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM Use is subject to License Terms

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>REM

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_IMQ_LIB=..\..\mq\lib

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_IMQ_BIN=..\..\mq\bin

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_CONFIG=..\config

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_INSTALL=..

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_DEF_DOMAINS_PATH=..\domains

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_DERBY_INSTALL=..\..\javadb

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>set AS_JAVA=

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>"\bin\java"
-Dcom.sun.aas.domainRoot="C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..\domains"
-Dcom.sun.aas.java.home="" -jar
"C:\Sun\glassfish-3.0.1-b15\glassfish\bin\\..\modules/upgrade-tool.jar"
The system cannot find the path specified.

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>endlocal

C:\Sun\glassfish-3.0.1-b15\glassfish\bin>