I am trying to work through some of the examples in the Axis 1.0 release.
  When I do:

$ java org.apache.axis.wsdl.WSDL2Java -t -s file:///F:/xml-axis-10/samples/addr/AddressBook.wsdl

  I get:

java.lang.NoSuchMethodError
        at com.ibm.wsdl.util.xml.QNameUtils.newQName(Unknown Source)
        at com.ibm.wsdl.util.xml.QNameUtils.matches(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:369)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:358)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243)
        at java.lang.Thread.run(Thread.java:484)

  What can the problem be?  Thanks in advance!

  I am quite sure that I have wsdl4j.jar in my CLASSPATH.
  (To verify, I remove wsdl4j.jar from my CLASSPATH which promptly results in
  NoClassDefFoundError for other classes in there.)
  Also, all of the Axis-related jars at the front of the CLASSPATH.

  (BTW, on an unrelated note, if I just do:

$ java org.apache.axis.wsdl.WSDL2Java AddressBook.wsdl

  I get the error:

java.net.MalformedURLException: no protocol: AddressBook.wsdl

  How do I specify just the .wsdl file without the file: "protocol" stuff?)

--
Andy Nguyen \ Fortigo Inc. \ www.fortigo.com
aqn at fortigo.com

Reply via email to