You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sergey E. Koposov (JIRA)" <ji...@apache.org> on 2006/09/12 21:58:22 UTC

[jira] Created: (AXIS2-1144) WSDL2Java fails with java.io.FileNotFoundException

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


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):  

[math@fortune 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
[math@fortune tmp 21:42:18]$ mkdir -p ./resources/http':'/localhost':'8080/axis2/
[math@fortune 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.
[math@fortune 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1144) WSDL2Java fails with java.io.FileNotFoundException

Posted by "Sergey E. Koposov (JIRA)" <ji...@apache.org>.
     [ 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):  
> [math@fortune 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
> [math@fortune tmp 21:42:18]$ mkdir -p ./resources/http':'/localhost':'8080/axis2/
> [math@fortune 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.
> [math@fortune 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1144) WSDL2Java fails with java.io.FileNotFoundException

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1144?page=all ]

Davanum Srinivas resolved AXIS2-1144.
-------------------------------------

    Resolution: Invalid

Please change

<wsdl:service name="http://localhost:8080/axis2/sai_cas">

into say

<wsdl:service name="sai_cas_service">

According to WSDL 1.1 spec, wsdl:service/@name should be a NMTOKEN (from xmlschema) and hence can't have '/' in the string.

thanks,
dims

> 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):  
> [math@fortune 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
> [math@fortune tmp 21:42:18]$ mkdir -p ./resources/http':'/localhost':'8080/axis2/
> [math@fortune 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.
> [math@fortune 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org