axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Godwin Chapman (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3659) Wsdl2 code generation falis
Date Wed, 02 Apr 2008 16:07:24 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Keith Godwin Chapman resolved AXIS2-3659.
-----------------------------------------

    Resolution: Fixed

Woden has fixed this issue. Verified the fix.

> Wsdl2 code generation falis
> ---------------------------
>
>                 Key: AXIS2-3659
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3659
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: winxp, jdk15, 1.4-RC1
>            Reporter: Charitha Kankanamge
>            Assignee: Keith Godwin Chapman
>            Priority: Critical
>
> I tried to generate code using wsdl2 of default version service. Code gen fails with
the following exception.
> C:\Axis2\axis2-1.4\axis2-637511\bin>wsdl2java.bat -uri http://localhost:8080/axis2/services/Version?wsdl2
-wv 2.0 -o C:\Axis2\axis2-1.4\axis2-637511\bin\out
> Using AXIS2_HOME:   C:\Axis2\axis2-1.4\axis2-637511
> Using JAVA_HOME:    D:\Program Files\Java\jdk1.5.0_14
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
> : Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:159)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: axisversion.sample: java.net.UnknownHostException:
axisversion.sample
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>         at java.net.Socket.connect(Socket.java:520)
>         at java.net.Socket.connect(Socket.java:470)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:304)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:321)
>         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
>         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
>         at java.net.URLConnection.getContent(URLConnection.java:682)
>         at java.net.URL.getContent(URL.java:1021)
>         at org.apache.woden.internal.wsdl20.assertions.Description1001.validate(Description1001.java:28)
>         at org.apache.woden.internal.wsdl20.validation.WSDLValidator.checkAssertions(WSDLValidator.java:109)
>         at org.apache.woden.internal.wsdl20.validation.WSDLValidator.validate(WSDLValidator.java:77)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:207)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:233)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:268)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:127)
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDL
> File(WSDL20ToAxisServiceBuilder.java:1181)
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(WSDL20ToAxisServiceBuilder.java:151)
>         at org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(WSDL20ToAllAxisServicesBuilder.java:53)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:102)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>         at org.apache.woden.internal.wsdl20.assertions.Description1001.validate(Description1001.java:42)
>         at org.apache.woden.internal.wsdl20.validation.WSDLValidator.checkAssertions(WSDLValidator.java:109)
>         at org.apache.woden.internal.wsdl20.validation.WSDLValidator.validate(WSDLValidator.java:77)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:207)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:233)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:268)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:127)
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDL
> File(WSDL20ToAxisServiceBuilder.java:1181)
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(WSDL20ToAxisServiceBuilder.java:151)
>         at org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(WSDL20ToAllAxisServicesBuilder.java:53)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:102)
>         ... 2 more
> Steps to reproduce:
> ===============
> 1. Start Axis2server
> 2. Enter following command
> wsdl2java.bat -uri http://localhost:8080/axis2/services/Version?wsdl2 -wv 2.0 -o C:\Axis2\axis2-1.4\axis2-637511\bin\out

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message