File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFound Exception in while using java2sdl command