aspose file tools*
The moose likes Web Services and the fly likes Setting up the Java Web Services tutorial and Sun Java system appn server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Setting up the Java Web Services tutorial and Sun Java system appn server" Watch "Setting up the Java Web Services tutorial and Sun Java system appn server" New topic
Author

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

Parthiv Patel
Greenhorn

Joined: Feb 10, 2003
Posts: 10
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting up the Java Web Services tutorial and Sun Java system appn server
 
Similar Threads
error in run Ant in Jwsdp1.3
Problem of run ant come with jwsdp1.3
unable to log with log4j in tomcat 6.0.29
WEBLOGICCLASSPATH!!! - Weblogic 5.1
startup.bat stops itself