axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Safdar Ali" <>
Subject Re: WSDL2Java problem / Solution
Date Thu, 29 Jan 2004 19:06:00 GMT
MessageHi all, (especially Lopez, Kondapalli, Ashley)
Finally, after doing 3 days of brain storming.. I have come to a solution for WSDL2Java problem
where it throws Exception at different levels.....

It involves two prblems....
1) Your classpath variable limit; which is 1024 characters on Windows Sytems (2k professional
and all)...
2) Inclusion of all required .jars files into your classpath variable that come with Axis.

For the solution... I have made two System variables... one is CLASSPATH and the other is
Now, when I want to run this command (>java org.apache.axis.wsdl.WSDL2Java AddressBook.wsdl),
I set the CLASSPATH variable

My details of both variables are below:



where JAVA_ENDORSED=C:\j2sdk1.4.2_03\jre\lib\endorsed

(You can put all the files into lib folder of Java, but I prefer to put the files in endorsed

I've shortened the names of all .jars files but these are still readable....I have made a
.bat file which I exectue before using the WSDL2Java utility...and this .bat contains the
command that I showed earlier... (>set CLASSPATH=%CLASSPATH%%CLASSPATH1%)

Have fun!!!

  ----- Original Message ----- 
  From: Ransel Lopez 
  Sent: Monday, January 26, 2004 5:07 PM
  Subject: RE: WSDL2Java problem

  Hi Safdar,

  I have the same problem. I sent the same question and I didn't get any answer. Please, if
you find the solution let me know. I'll do the same.

  Thank you very much

  Ransel López, Web Services Developer
  Time Industrial, Inc.
   An Outsourced Contractor Time and Cost Tracking Service.
  tel: 780.413.1521  fax: 780.413.0474 

   This message and attached files, if any, is (are) intended only for the addressee(s) and
   contain privileged or confidential information. Any unauthorized disclosure is strictly
   If destined to our legal counsel, this transmission is privileged communication as between
   attorney and its client.
   If you have received this message in error, please notify us immediately so that we may
   our internal records. Please then delete the original message. Thank you.


    -----Original Message-----
    From: []
On Behalf Of Safdar Ali
    Sent: Monday, January 26, 2004 8:12 AM
    To: Axis User
    Subject: WSDL2Java problem

    I am getting the following error while using WSDL2Java tool...

    C:\axis-1_1\samples\addr>java org.apache.axis.wsdl.WSDL2Java Address.wsdl
    Exception in thread "main" java.lang.NoClassDefFoundError: javax.wsdl.Definition
            at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.class$(
            at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addDefinitionGenerators(
            at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addGenerators(
            at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.<init>(
            at org.apache.axis.wsdl.toJava.Emitter.<init>(
            at org.apache.axis.wsdl.WSDL2Java.createParser(
            at org.apache.axis.wsdl.gen.WSDL2.<init>(
            at org.apache.axis.wsdl.WSDL2Java.<init>(
            at org.apache.axis.wsdl.WSDL2Java.main(

    All of the required .jar files exist in classpath... and even I have extracted the 3 .jar
files into the Java_Home\lib folder... and it still doesn't work....
    I would be thankful if get the suggestion...

View raw message