axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gorodowienko ...@lpt.dk>
Subject Re: RE : [AXIS2C] [WSDL2C] Tool usage problem.
Date Tue, 17 Jun 2008 08:49:02 GMT
I found a solution for missing classes.

I just have unpacked all of the JAR files.

Daniel Gorodowienko wrote:
> Hi Carl and axis mailing group,
> 
>     My CLASSPATH is equal to 
> .;C:\Programmer\Java\jre1.6.0_05\lib\ext\QTJava.zip;C:\axis2c-bin-1.4.0-win32\lib 
> 
>     and file containing org.apache.axis2.wsdl.WSDL2C class is 
> axis2-codegen-1.4.jar, which is contained in lib directory.
>     JAVA_HOME stands as C:\Programmer\Java\jdk1.6.0_05
>     System was rebooted.
>     Problem exists and I don't know what is going on.
> 
>     Any other ideas, please?
> 
> Best regards,
>     Daniel Gorodowienko
> 
> Lefrancois, Carl wrote:
>> Hello,
>>
>> I believe that exception means that the CLASSPATH environment variable
>> needs fixing.  It should include a reference to the Axis2 directory that
>> contains the jar files for WSDL2C.
>>
>> I had the same problems when beginning to use WSDL2C.  Keep at it, it
>> works well eventually!
>>
>> hth
>>
>>
>> -----Message d'origine-----
>> De : Daniel Gorodowienko [mailto:dg@lpt.dk] Envoyé : lundi, juin 16, 
>> 2008 10:56
>> À : axis-c-user@ws.apache.org
>> Objet : [AXIS2C] [WSDL2C] Tool usage problem.
>>
>>
>> Dear Axis users,
>>
>>      I have an issue about creation ANSI C code from WSDL file with 
>> usage of WSDL2C.bat script on Windows machine.
>>      I have downloaded, unpacked and went through installation notes of:
>> axis2-1.4-bin.zip axis2c-bin-1.4.0-win32.zip
>> distribution-SNAPSHOT-bin.zip
>>      Unfortunately I can not make it work, still.
>>
>>      For command:
>>
>> C:\axis2c-bin-1.4.0-win32\siri-1.0>java org.apache.axis2.wsdl.WSDL2C 
>> -uri <my_file>.wsdl -ss -sd -d none
>>
>>      I got a response:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> org/apache/axis2/wsdl/WSDL2C
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.axis2.wsdl.WSDL2C
>>          at java.net.URLClassLoader$1.run(Unknown Source)
>>          at java.security.AccessController.doPrivileged(Native Method)
>>          at java.net.URLClassLoader.findClass(Unknown Source)
>>          at java.lang.ClassLoader.loadClass(Unknown Source)
>>          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>          at java.lang.ClassLoader.loadClass(Unknown Source)
>>          at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>
>>      And for command:
>>
>> WSDL2C.bat -uri <my_file>.wsdl -ss -sd -d adb -u
>>
>>      I got response:
>>
>> C:\axis2c-bin-1.4.0-win32>echo off
>> Unrecognized option: -uri
>> Could not create the Java virtual machine.
>>
>>      I did not find any helpful information on Internet.
>>      Any suggestions, please?
>>
>> Best regards,
>>      Daniel Gorodowienko

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message