axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject Re: WSDL2Java error messages
Date Thu, 02 May 2002 17:15:21 GMT
Well, I'm bamboozled.  There's very little WSDL2Java code that's run up to
this point, and that code hasn't changed from beta 1 to beta 2.  When I try
running WSDL2Java on a non-existent file, I get a different stack trace
than you do.  It starts out (from the bottom) the same, but it's quite a
bit different in the xerces stuff.  What version of xerces are you using?
I'm using xerces 2.

Russell Butek
butek@us.ibm.com


"Simon McClenahan" <simon.mcclenahan@stellent.com> on 05/02/2002 11:45:08
AM

Please respond to axis-user@xml.apache.org

To:    "Axis User (E-mail)" <axis-user@xml.apache.org>
cc:
Subject:    WSDL2Java error messages



I am using WSDL2Java from beta2 on a WSDL, it came up with the following
error:

C:\>java org.apache.axis.wsdl.WSDL2Java --verbose --all --fileNStoPkg Y:
\xxx\dev\java\axis\NStoPkg.properties --output Y:
\xxx\dev\java\axis\stub\src Y:\xxx\dev\java\axis\xxx.wsdl
Parsing XML file:  Y:\xxx\dev\java\axis\xxx.wsdl
- Exception:
org.xml.sax.SAXException: Fatal Error: URI=null Line=0: File "Y:
\xxx\dev\java\axis\xxx.wsdl" not found.
        at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils
.java:472)
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1085
)
        at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocume
nt(DefaultEntityHandler.java:499)
        at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:3
05)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:947)
        at
        org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
java:123)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:243)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:256)
        at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:151)
        at
        org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)
        at java.lang.Thread.run(Unknown Source)
java.io.IOException: Unable to retrieve WSDL document: Y:\xxx\
dev\java\axis\xxx.wsdl
        at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:153)
        at
        org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)
        at java.lang.Thread.run(Unknown Source)


The file does in fact exist. I tried it again with an older version of Axis
I grabbed from CVS a week or so ago, and I get the message:

java.io.IOException: Duplicate class name: net.xxx.qa.OptionList.
Hint: you may have mapped two namespaces with elements of the same name to
the same package name.
 at org.apache.axis.wsdl.toJava.JavaWriter.write(JavaWriter.java:181)
 at
 org.apache.axis.wsdl.toJava.JavaTypeWriter.write(JavaTypeWriter.java:137)
 at org.apache.axis.wsdl.toJava.Emitter.writeTypes(Emitter.java:517)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:204)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:193)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:155)
 at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)
 at java.lang.Thread.run(Unknown Source)



I know this is a problem with my WSDL, but the beta2 version is not giving
a useful error message.

cheers,
 Simon




Mime
View raw message