Problem in Using WSDL2C tool

psathishcs's picture
I am trying to Create C Code from the WSDL File using the tool WSDL2C. it gives some error >WSDL2C -uri simple.wsdl -ss -sd -d adb -u >echo off Exception in thread "main" java.lang.NoClassDefFoundError: Files\Apache Caused by: java.lang.ClassNotFoundException: Files\Apache 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) Could not find the main class: Files\Apache. Program will exit. > can any one tell me how to solve this problem Thank in advance. -sathish
nandika's picture

Re:

You need to download the axis2 java binary distribution and follow the details specified in the readme file. Regards Nandika
amit.tare.hotmail.com's picture

set CLASSPATH in wsdl2c

hello, i am facing the same problem when i run the Axis/c Wsdl2c tool. when i run the command WSDL2C.bat Calculator.wsdl -d adb -u i get the error Exception in thread "main" java.lang.NoClassDefFoundError: Calculator/wsdl Caused by: java.lang.ClassNotFoundException: Calculator.wsdl 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) Could not find the main class: Calculator.wsdl. Program will exit. i am completely follow your instructions as i have seen in the axis/java. in that i find no solution. I think that it's need of seeting the CLASSPATH to the JDK. it is really necessary to set the CLASSPATH..??? I already set the AXIS_HOME PLS RPLY AMIT TARE amit.tare@hotmail.com
nandika's picture

Re

The WSDL2C.bat automatically construct the classpath. In your case, you are getting the error due to incorrect options. You should specify it as WSDL2C.bat -uri Calculator.wsdl -d adb -u Regards Nandika
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)