Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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

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

Missing argument
The syntax of the command is incorrect.

here's the bat file code
@echo off

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

if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Script to copy JWSDP files into a Sun Java System App Server8.0 installation
rem Environment Variable Prequisites
rem JAVA_HOME Must point at your Java Development Kit installation.
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
call %PRG%\..\setenv.bat

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

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

rem Check arguments
if not ""%1"" == """" goto gotAppServerArg
echo Missing argument
echo Usage: %PRG% SJSAppServer-installation-directory <target>
goto end
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

rem Get command line arguments and save them
if ""%1""=="""" goto doneSetArgs
goto setArgs

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%


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
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!