Hmmm... Uncle Bill bites me in the @ss again! |-) Who woulda thunk the Java
is not really Java when it comes to Windoze?! My problem is on a NT server machine.
I tried the same thing on a Linux machine, with the same .jar's (but a set of
JDK 1.3 jars for Linux, obviously) and things work fine.
I tried the 1_1beta build of Axis and still no dice on NT. I guess I'd just have
to do the WSDL2Java stuff on Linux.
Thanks for all the suggestions anyway.
(And BTW, on Linux, the invocation of "java org.apache.axis.wsdl.WSDL2Java filename"
does *not* yield a "no protocol" error.)
--
Andy Nguyen \ Fortigo Inc. \ www.fortigo.com
aqn at fortigo.com
-------- Original Message --------
Subject: Help please! WSDL2Java NoSuchMethodError for com.ibm.wsdl.util.xml.QNameUtils.newQName(Unknown Source)
Date: Thu, 12 Dec 2002 18:28:47 -0600
From: Andy Nguyen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: Fortigo Inc.
To: [EMAIL PROTECTED]
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