axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith Harshana Ranabahu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-228) java.io.IOException: No such file or directory if folder pointed by -o option is missing
Date Tue, 20 Sep 2005 10:37:28 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-228?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-228:
-------------------------------------------

    Resolution: Fixed

Solved. Tested both on a linux system and a windows system. If the file (dir) is missing it's
created automatically

> java.io.IOException: No such file or directory if folder pointed by -o option is missing
> ----------------------------------------------------------------------------------------
>
>          Key: AXIS2-228
>          URL: http://issues.apache.org/jira/browse/AXIS2-228
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: wsdl
>     Versions: 0.92
>     Reporter: Samisa Abeysinghe

>
> I used the following command:
> java -cp ../axis2/java/target/lib/axis2-0.92.jar:../axis2/java/target/lib/axis-wsdl4j-1.2.jar:../axis2/java/target/lib/stax-api-1.0.jar:../axis2/java/target/lib/commons-logging-1.0.3.jar:../axis2/java/target/lib/log4j-1.2.8.jar:../axis2/java/target/lib/xbean-2.0.0-beta1.jar
org.apache.axis2.wsdl.WSDL2Code -uri ../axiscpp/ws-axis/c/c/deploy/wsdls/bench.wsdl -o out
-d 0
> and got the following error:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.io.IOException: No such file or directory
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:104)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.io.IOException:
No such file or directory
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStub(MultiLanguageClientEmitter.java:161)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:97)
>         ... 1 more
> Caused by: java.io.IOException: No such file or directory
>         at java.io.UnixFileSystem.createFileExclusively(Native Method)
>         at java.io.File.createNewFile(File.java:850)
>         at org.apache.axis2.wsdl.util.FileWriter.createClassFile(FileWriter.java:64)
>         at org.apache.axis2.wsdl.codegen.writer.ClassWriter.createOutFile(ClassWriter.java:109)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writeClass(MultiLanguageClientEmitter.java:503)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writeInterface(MultiLanguageClientEmitter.java:379)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStubBinding(MultiLanguageClientEmitter.java:278)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStubAutomatic(MultiLanguageClientEmitter.java:307)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emitStub(MultiLanguageClientEmitter.java:155)
>         ... 2 more
> Wen I create the out folder manually and run, then it works

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


Mime
View raw message