• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

ClassNotFoundException using Java2WSDL command  RSS feed

Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!