You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Himansu Desai <hi...@hotmail.com> on 2005/08/29 07:12:35 UTC

NoSuchMethodError when trying the WSDL2Java sample from the userguide

Hi All,

I'm brand new to Axis, trying to work through the first few pages of the 
userguide.  I did the following:

1.  Downloaded binary version of axis2-0.91 and installed axis2.war in 
JBoss.
2.  Worked through installation guide and first few pages of the userguide, 
verified Axis2 Happiness page, uploaded sample webservice 'MyServie' - 
everything works as expected.
3.  In the section on generating the skeleton from a given WSDL, there are 
instructions to do the following:

WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o 
..\samples\src -p org.apache.axis2.userguide

4.  AXIS_HOME is correctly set to:  D:\axis2-0.91-bin

     In the course of running WSDL2Java, the classpath is set to:

      
"D:\axis2-0.91-bin";"D:\axis2-0.91-bin\lib\axis2-0.91.jar";"D:\axis2-0.91-bin\lib\axis-wsdl4j-1.2.jar";"D:\axis2-0.91-bin\lib\commons-logging-1.0.3.jar";"D:\axis2-0.91-bin\lib\xbean-2.0.0-beta1.jar";"D:\axis2-0.91-bin\lib\log4j-1.2.8.jar";"D:\axis2-0.91-bin\lib\stax-1.1.1-dev.jar";"D:\axis2-0.91-bin\lib\stax-api-1.0.jar";"D:\axis2-0.91-bin\lib\geronimo-spec-activation-1.0.2-rc3.jar";"D:\axis2-0.91-bin\lib\geronimo-spec-javamail-1.3.1-rc3.jar";"D:\axis2-0.91-bin\lib\xbean-2.0.0-beta1.jar";"D:\axis2-0.91-bin\lib\commons-codec-1.3.jar"


Exception in thread "main" java.lang.NoSuchMethodError
        at 
org.apache.axis2.wsdl.codegen.CommandLineOption.updateType(CommandLineOption.java:40)
        at 
org.apache.axis2.wsdl.codegen.CommandLineOption.<init>(CommandLineOption.java:49)
        at 
org.apache.axis2.wsdl.codegen.CommandLineOptionParser.parse(CommandLineOptionParser.java:67)
        at 
org.apache.axis2.wsdl.codegen.CommandLineOptionParser.<init>(CommandLineOptionParser.java:33)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:26)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:23)


I'm simply working through the userguide to take the first few baby steps 
and I have no clue on what might be causing the NoSuchMethod error.

I have no older versions of Axis or Axis2 or any other stray copies of any 
of the jars.  Everything that is referenced, is from the binary distribution 
and lives under d:\axis2-0.91-bin.

Any help is greatly appreciated - Thanks.

_ Himansu