Posted By keithmot on 2/10/2006 8:27 AM
Thanks for the info. I am running on a Windows XP. I am currently setting this to run in my Eclipse IDE and using JBoss as the web server. I kinda of figured that I would need to put the generated class files in its own iControl.jar file. I was looking for a nice and easy solution.
Here's a make.bat file you can replace with the one in your sdk\samples\soap\java\apache\axis directory. It will create a iControl.jar file in a newly created lib directory. You might need to run a "make clean" first. Also, the samples have not been updated to use the new jar file.
@Echo Off
SetLocal
Set TOPDIR=..\..\..\..\..
Set SUBDIRS=LocalLB Management Networking System
call setenv.bat
Set BINDINGS_DIR=.\bindings
Set CLASS_DIR=.\class
Set LIB_DIR=.\Lib
Set WSDL2JAVA=%JAVAHOME%\bin\java -classpath %JAVA_CLASSPATH% org.apache.axis.wsdl.WSDL2Java
Set WSDL2JAVA_FLAGS= -o %BINDINGS_DIR%
If "%1"=="clean" Goto Clean
:checkdirs
If Not Exist %BINDINGS_DIR%\iControl Goto bindings
If Not Exist %LIB_DIR%\iControl.jar Goto buildlib
Goto samples
:bindings
Echo Generating java stub files...
If Not Exist %BINDINGS_DIR%\NUL mkdir %BINDINGS_DIR%
For %%s in ( %TOPDIR%\wsdl\*.wsdl ) do echo Compiling %%s...& %WSDL2JAVA% %WSDL2JAVA_FLAGS% %%s
If Not Exist %LIB_DIR%\iControl.jar goto buildlib
Goto samples
:buildlib
If Not Exist %LIB_DIR%\NUL mkdir %LIB_DIR%
If Not Exist %CLASS_DIR%\NUL mkdir %CLASS_DIR%
Echo Compiling iControl binding files...
for %%s in ( %BINDINGS_DIR%\iControl\*.java ) do echo %%s & javac -classpath %BINDINGS_DIR% -d %CLASS_DIR% %%s
for %%s in ( %BINDINGS_DIR%\iControl\holders\*.java ) do echo %%s & javac -classpath %BINDINGS_DIR% -d %CLASS_DIR% %%s
Echo Creating iControl.jar...
cd %CLASS_DIR%
jar cvf ..\lib\iControl.jar iControl
Cd ..
Goto samples
:samples
Echo Building Sample Applications...
For %%d in (%SUBDIRS%) do cd %%d& call make.bat& cd ..
Goto End
:clean
If Exist %BINDINGS_DIR%\NUL rmdir /s /q %BINDINGS_DIR%
If Exist %CLASS_DIR%\NUL rmdir /s /q %CLASS_DIR%
If Exist %LIB_DIR%\NUL rmdir /s /q %LIB_DIR%
For %%d in (%SUBDIRS%) do cd %%d& call make.bat clean& cd ..
Goto End
:end
EndLocal
-Joe