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 wolverine my <wo...@gmail.com> on 2007/04/24 04:12:06 UTC

wsdl2java.bat: UnknownHostException: C

Hi!

I got the following exceptions when try to generate the skeleton using
the WSDL2Java utility:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:114)
  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
  at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

Caused by: javax.wsdl.WSDLException: WSDLException:
faultCode=INVALID_WSDL: IO Error: java.net.UnknownHostException: C
  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:273)
  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
  ... 2 more

Caused by: java.net.UnknownHostException: C
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
  at java.net.Socket.connect(Socket.java:519)
  at java.net.Socket.connect(Socket.java:469)
  at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
  at sun.net.NetworkClient.openServer(NetworkClient.java:118)
  at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
  at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
  at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
  at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
  at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
  at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
  at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:191)
  at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:236)
  at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:219)
  at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:262)
  ... 3 more


I see that there is "java.net.UnknownHostException: C" but where is
this host "C" defined in the WSDL file? May I know how to fix the WSDL
to resolve this problem?

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org