I am trying the web services example from this site and following the instructions as per this site:
http://www.onjava.com/lpt/a/1578 I am trying the fibonacci example:
I have created a separate folder in D:\fibonacci and placed my Fibonacci.java and FibonacciImpl.java and complied it successfully and placed the class files are also in the same folder.
Now I want to generate the WSDL from
java and I have used the following cmd and I am getting this error:
D:\>java -cp %AXISCLASSPATH% org.apache.axis.wsdl.Java2WSDL -o fib.wsdl -l"http
://localhost:8080/axis/services/fibonacci" -n urn:fibonacci -p"fibonacci" urn:fi
bonacci fibonacci.Fibonacci
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
/ExtensibilityElement
at org.apache.axis.wsdl.Java2WSDL.createEmitter(Java2WSDL.java:279)
at org.apache.axis.wsdl.Java2WSDL.<init>(Java2WSDL.java:270)
at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:680)
My Classpath Settings:
AXIS_HOME = D:\axis-1_4
AXIS_LIB = %AXIS_HOME%\lib
AXISCLASSPATH = %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\activation.jar;
%AXIS_LIB%\mailapi.jar;
JAVA_HOME = D:\Program Files\Java\jdk1.5.0_01
PATH = D:\Program Files\Java\jdk1.5.0_01\bin
CLASSPATH = .;D:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;D:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;
D:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;D:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;
D:\PROGRA~1\IBM\SQLLIB\bin;D:\PROGRA~1\IBM\SQLLIB\java\common.jar
[ November 13, 2007: Message edited by: Mike Thomson ]
[ UD: inserted newlines to keep the layout intact ]
[ November 13, 2007: Message edited by: Ulf Dittmer ]