users@jax-rpc.java.net

Re: doubt

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Wed, 10 Mar 2004 11:33:24 -0800

Hi Sudha,

You need to invoke the wscompile tool as follows ...

wscompile -gen:client -classpath <CLASSPATH> config.xml

where <CLASSPATH> will contain the directory where your classes
(echo.EchoIF and other) are generated.

I see that you are also getting "taskdef class
com.sun.xml.rpc.tools.ant.wscompile can not found." error. You need to
make sure that all jaxrpc related jars are included in the classpath so
that this taskdef could be found. The list of jar files required by the
runtime is mentioned in the FAQ at
https://jax-rpc.dev.java.net/faq/index.html.

Thanks,
-Arun

ratna sudha wrote:

> hai
> i tried with the config.xml with the following classpath.
> set
> classpath=%classpath%;c:\jwsdp-1.3\jaxrpc\echo;c:\jwsdp-1.3\jaxrpc\bin;c:\jwsdp-1.3\common\lib\servlet-api.jar;c:\jwsdp-1.3\saaj\lib\saaj-api.jar;c:\program
> files\j2sdk_nb\j2sdk1.4.2\bin\rmid;c:\program
> files\j2sdk_nb\j2sdk1.4.2\jre\lib\rmid;c:\program
> files\j2sdk_nb\j2sdk1.4.2\java\rmi;c:\jwsdp-1.3\apache-ant\lib\ant.jar;c:\jwsdp-1.3\apache-ant\bin;
> following is the wscompile.bat file given in the package and i
> included the directory in the classpath of wscompile.but got the same
> error "RmiModeler error:java.lang.ClassNotFoundException :echo$EchoIF".
> @echo off
> if "%OS%" == "Windows_NT" setlocal
> rem
> ---------------------------------------------------------------------------
> rem Script to run wscompile
> rem
> rem Environment Variable Prequisites
> rem
> rem JAVA_HOME Must point at your Java Development Kit installation.
> rem
> rem $Id: wscompile.bat,v 1.5 2003/01/23 07:31:33 mode Exp $
> rem
> ---------------------------------------------------------------------------
> rem Get standard environment variables
> set PRG=%0
> if exist %PRG%\..\..\..\jwsdp-shared\bin\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%\..\..\..\jwsdp-shared\bin\setenv.bat
> :doneSetenv
> 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
> 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
> :doneSetArgs
> rem Execute the Tomcat launcher
> "%JAVA_HOME%\bin\java.exe" -classpath
> %PRG%\..;%PRG%\..\..\..\jwsdp-shared\bin;%PRG%\..;%PRG%\..\..\..\jaxrpc\echo;
> -------------------------------------
> "%PATH%" LauncherBootstrap -verbose wscompile %CMD_LINE_ARGS%
> :end
> i tried this wit ANT tool also.i got the error
> file:c:/jwsdp-1.3/jaxrpc/echo/build.xml:42:taskdef class
> com.sun.xml.rpc.tools.ant.wscompile can not found.
>
> plz suggest me wat to do.
> thanking u
> sudha.
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster.
> <http://search.yahoo.com/?fr=ad-mailsig-home>


-- 
got Web Services ?
Download Java Web Services Developer Pack from
http://java.sun.com/webservices
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net