[ http://issues.apache.org/jira/browse/AXIS2-1144?page=all ]

Sergey E. Koposov updated AXIS2-1144:
-------------------------------------

    Attachment: sai_cas.wsdl

The WSDL file on which WSDL2Java fails

> WSDL2Java fails with java.io.FileNotFoundException
> --------------------------------------------------
>
>                 Key: AXIS2-1144
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1144
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.0
>         Environment: Java 1.5.0.08, Linux, Slackware
>            Reporter: Sergey E. Koposov
>         Attachments: sai_cas.wsdl
>
>
> The WSDL2Java code fails with the FileNotFoundException, and only when I 
> manually create the directory ( resource/http://.... etc. ) for it, it works
> Example (the WSDL file was generated by AXIS2 Java2WSDL):  
> [EMAIL PROTECTED] tmp 21:42:09]$ java org.apache.axis2.wsdl.WSDL2Java -ss -sd 
> -uri ../build/wsdl/sai_cas.wsdl 
> log4j:WARN No appenders could be found for logger 
> (org.apache.axis2.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: WSDL writing failed!
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: WSDL writing failed!
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:768)
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:206)
>         ... 2 more
> Caused by: java.lang.RuntimeException: WSDL writing failed!
>         at 
> org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.writeWSDL(WSDL11Writer.java:46)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:821)
>         at 
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:763)
>         ... 3 more
> Caused by: java.io.FileNotFoundException: 
> ./resources/http:/localhost:8080/axis2/sai_cas.wsdl (No such file or 
> directory)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
>         at 
> org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.writeWSDL(WSDL11Writer.java:40)
>         ... 5 more
> Now, If I do create the directory, it works
> [EMAIL PROTECTED] tmp 21:42:18]$ mkdir -p 
> ./resources/http':'/localhost':'8080/axis2/
> [EMAIL PROTECTED] tmp 21:42:49]$ java org.apache.axis2.wsdl.WSDL2Java -ss -sd 
> -uri ../build/wsdl/sai_cas.wsdl 
> log4j:WARN No appenders could be found for logger 
> (org.apache.axis2.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> [EMAIL PROTECTED] tmp 21:42:55]$ ls 
> The same behaviour occurs with the latest nightly snapshot...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to