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

Setting up the Java Web Services tutorial and Sun Java system appn server

 
Parthiv Patel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can someone please suggest me what to do. I had installed the Sun Java System Application Server 8 without any problem, my JWSDPack installation was also successful. After I installed the WebServices pack, I am trying to run this batch file
jwsdponsjsws.bat to integrated the app.server with the developer pack. I get this error everytime

C:\Sun\jwsdp-1.5\jwsdp-shared\bin>jwsdponsjsas.bat
Missing argument
The syntax of the command is incorrect.

here's the bat file code
@echo off

REM
REM Copyright 2004 Sun Microsystems, Inc. All rights reserved.
REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
REM

if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Script to copy JWSDP files into a Sun Java System App Server8.0 installation
rem
rem Environment Variable Prequisites
rem
rem JAVA_HOME Must point at your Java Development Kit installation.
rem
rem $Id: jwsdponsjsas.bat,v 1.3 2004/09/11 07:42:50 rameshm Exp $
rem ---------------------------------------------------------------------------

rem Get standard environment variables
set PRG=%0
if exist %PRG%\..\setenv.bat goto gotCmdPath
rem %0 must have been found by DOS using the %PATH% so we assume that setenv.bat
rem will also be found in the %PATH%
call setenv.bat
goto doneSetenv
:gotCmdPath
call %PRG%\..\setenv.bat
oneSetenv

rem Make sure prerequisite environment variables are set
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo The JAVA_HOME environment variable is not defined
echo This environment variable is needed to run this program
goto end
:gotJavaHome

if not "%JWSDP_HOME%" == "" goto gotJWSDPHOME
echo The JWSDP_HOME environment variable is not defined
echo This environment variable is needed to run this program
echo Please check <JWSDP_InstallDir>\jwsdp-shared\bin\setenv.bat file
echo to see if JWSDP_HOME variable is defined
goto end
:gotJWSDPHOME

rem Check arguments
if not ""%1"" == """" goto gotAppServerArg
echo Missing argument
echo Usage: %PRG% SJSAppServer-installation-directory <target>
goto end
:gotAppServerArg
set APPSERVER_HOME=%1
if exist "%APPSERVER_HOME%\lib\appserv-cmp.jar" goto okAppServerArg
echo Directory does not contain a Sun Java System Application Server 8 installation
echo Usage: %PRG% SJSAppServer-installation-directory" <target>
goto end
kAppServerArg
shift

rem Get command line arguments and save them
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
oneSetArgs

rem Execute the Launcher using the "ant" target by giving jwsdponsjsas.xml
rem as build file
"%JAVA_HOME%\bin\java.exe" -Dclasspath "%JWSDP_HOME%\jwsdp-shared\bin;%JWSDP_HOME%\jwsdp-shared\bin\commons-launcher.jar;%JWSDP_HOME%\apache-ant\lib\ant.jar;%JWSDP_HOME%\apache-ant\lib\ant-launcher.jar;%JWSDP_HOME%\apache-ant\lib\ant-nodeps.jar;%JWSDP_HOME%\jaxp\lib\jaxp-api.jar;%JWSDP_HOME%\jaxp\lib\endorsed\sax.jar;%JWSDP_HOME%\jaxp\lib\endorsed\dom.jar;%JWSDP_HOME%\jaxp\lib\endorsed\xercesImpl.jar;%JWSDP_HOME%\jaxp\lib\endorsed\xalan.jar" LauncherBootstrap -verbose ant -buildfile "%JWSDP_HOME%\jwsdp-shared\bin\jwsdponsjsas.xml" -Dsjsas.home="%APPSERVER_HOME%" %CMD_LINE_ARGS%


:end

Should I have set any Path/Classpath? What's going wrong here?
and yes this is on a Windows XP machine
please let me know
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic