function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
munixmunix 

WSDL2Java Error

Hi, I was trying to bind the WSDL file I downloaded from SFDC, but I got following errors, can anyone help me:

>java -classpath e:\axis-1_1\lib\axis.jar;e:\axis-1_1\lib\axis-ant.jar;e:\axis-1_1\lib\commons-iscovery.jar;e:\axis-1_1\lib\commons-logging.jar;e:\axis-1_1\lib\jaxrpc.jar;e:\axis-1_1\lib\log4j-1.2.4.jar;e:\axis-1_1\lib\saaj.jar org.apache.axis.wsdl.WSDL2Java -a -T 1.2 sfdc.wsdl


Exception in thread "main" java.lang.NoClassDefFoundError: javax.wsdl.Definition

        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.class$(JavaGenerator
Factory.java:163)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addDefinitionGenerat
ors(JavaGeneratorFactory.java:163)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addGenerators(JavaGe
neratorFactory.java:133)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.<init>(JavaGenerator
Factory.java:120)
        at org.apache.axis.wsdl.toJava.Emitter.<init>(Emitter.java:120)
        at org.apache.axis.wsdl.WSDL2Java.createParser(WSDL2Java.java:172)
        at org.apache.axis.wsdl.gen.WSDL2.<init>(WSDL2.java:113)
        at org.apache.axis.wsdl.WSDL2Java.<init>(WSDL2Java.java:161)
        at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:289)

Thanks in advance.

munixmunix
Never mind, I fogot to include wsdl4j.jar in my classpath. Thanks anyway.
adamgadamg
For future reference, the Java Getting Started Package (on the toolkits page) provides a single JAR will all of the Axis libs, which makes the classpath gymnastics a bit easier.