Hi, Emma
it looks like the vm isn't able to find the class fib2.Fib2
Is the classpath variable correct, if any?
 
regards,
Paolo
 
 
Hi!

Can someone please tell me how to use the java2wsdl command.
I'm trying to follow the instructions on
 
    http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2

But the command:
    java org.apache.axis.wsdl.Java2WSDL -o fib.wsdl
    -l"http://localhost:8080/axis/services/fibonacci"
    -n urn:fibonacci -p"fibonacci" urn:fibonacci fibonacci.Fibonacci
gives me the following error:

% java org.apache.axis.wsdl.Java2WSDL -o fib2.wsdl -lhttp://150.132.6.212:8080/axis/services/fib2 -n urn:fib2 -pfib2 urn:fib2 fib2.Fib2
java.lang.ClassNotFoundException: fib2.Fib2
        at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:130)
        at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
        at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112)
        at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:1270)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:454)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:497)

what might be wrong?

/ Emma

Reply via email to