*
The moose likes Web Services and the fly likes ClassNotFound Exception in while using java2sdl command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "ClassNotFound Exception in while using java2sdl command" Watch "ClassNotFound Exception in while using java2sdl command" New topic
Author

ClassNotFound Exception in while using java2sdl command

Mortin kim
Ranch Hand

Joined: Nov 15, 2007
Posts: 44
HI
I need to generate WSDL file using java2wsdl but
I am getting ClassNotFoundException using Java2WSDL command.
let me brief.

1. I have created a interface and implementtaion class

public interface Fibonacci {
public int calculateFibonacci( int num );
public int[] calculateFibonacciRange(int start, int stop);
}
public class FibonacciImpl {
public int calculateFibonacci( int num ) {
if (num <= 0) return 0;
if (num == 1) return 1;
int previous1 = 1, previous2 = 0, fib = 0;
for (int i=2; i <= num; i++) {
// the fib is the answer of the previous two answers
fib = previous1 + previous2;
// reset the previous values
previous2 = previous1;
previous1 = fib;
}
return fib;
}
These 2 are under my workspace C:\workspace\TestWS\src\com\ibm\test\

and i have my axis in under tomcat :C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis

so ran this command at this path ( C:\workspace\TestWS\src\com\ibm\test\ )
like this :

java org.apache.axis.wsdl.Java2WSDL -o fib.wsdl -l"http://localhost:8080/axis/services/fibonacci" -n urn:fibonacci -p"fibonacci" urn:fibonacci fibonacci.Fibonacas i am new to webservices can any one tell me how to run this java2wsdl commnd and where to run this commnd

Suggenstions are highly appreciated.

KIM.
 
 
subject: ClassNotFound Exception in while using java2sdl command
 
Similar Threads
please help
fibonacci program
Online Java Editor/Compiler?
ClassNotFoundException using Java2WSDL command
Doubts in Fibonacci Web Services Example