axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mule_user <s...@aol.com>
Subject Java2WSDL in Axis1.2 gives error java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
Date Thu, 24 Sep 2009 21:12:27 GMT

I am using Axis 1.4 for Java2WSDL. It is a web project called MyAxis where
the source file is in src folder and the generated .class is under
WEB-INF/classes. However, for the sake of creating a WSDL, I copied .class
file to the src folder of MyAxis project.

AXIS_CLASSPATH is added as a user-variable as:

C:\Axis\axis-1_4\lib\axis.jar;C:\Axis\axis-1_4\lib\commons-discovery-0.2.jar;C:\Axis\axis-1_4\lib\commons-logging-1.0.4.jar;C:\Axis\axis-1_4\lib\jaxrpc.jar;C:\Axis\axis-1_4\lib\saaj.jar;C:\Axis\axis-1_4\lib\log4j-1.2.8.jar;C:\Axis\axis-1_4\lib\wsdl4j-1.5.1.jar;C:\Axis\axis-1_4\lib\xml-apis.jar;C:\Axis\axis-1_4\lib\xercesImpl.jar


I set the class path as: 

C:\Axis>set CLASSPATH=%AXIS_CLASSPATH%;C:\workspace-7.5\MyAxis\src

C:\Axis>echo %CLASSPATH%

C:\Axis\axis-1_4\lib\axis.jar;C:\Axis\axis-1_4\lib\commons-discovery-0.2.jar;C:\
Axis\axis-1_4\lib\commons-logging-1.0.4.jar;C:\Axis\axis-1_4\lib\jaxrpc.jar;C:\A
xis\axis-1_4\lib\saaj.jar;C:\Axis\axis-1_4\lib\log4j-1.2.8.jar;C:\Axis\axis-1_4\
lib\wsdl4j-1.5.1.jar;C:\Axis\axis-1_4\lib\xml-apis.jar;C:\Axis\axis-1_4\lib\xerc
esImpl.jar;C:\workspace-7.5\MyAxis\src


Next, I run Java2WSDL as:

C:\Axis>java -classpath %AXIS_CLASSPATH%;C:\workspace-7.5\MyAxis\src
org.apache.
axis.wsdlgen.Java2WSDL -o MySample.wsdl org.MyPojo

I get error as:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/wsdlg
en/Java2WSDL

What am I missing?
-- 
View this message in context: http://www.nabble.com/Java2WSDL-in-Axis1.2-gives-error-java.lang.NoClassDefFoundError%3A-org-apache-axis-wsdlgen-Java2WSDL-tp25589017p25589017.html
Sent from the Axis - User mailing list archive at Nabble.com.


Mime
View raw message