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 "Thilo Frotscher (JIRA)" <ji...@apache.org> on 2006/11/07 11:26:50 UTC

[jira] Created: (AXIS2-1634) WSDL2Java throws exception

WSDL2Java throws exception
--------------------------

                 Key: AXIS2-1634
                 URL: http://issues.apache.org/jira/browse/AXIS2-1634
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.1
         Environment: Axis2 1.1 RC2
            Reporter: Thilo Frotscher
            Priority: Minor


1) Usage message printed by WSDL2Java says that "csharp" is a valid option for the language parameter. That's wrong, it must be "c-sharp"
2) When using "-l c-sharp" code is generated, but I get the following exception:

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: template for
this writer is not found!
        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: template for this writer is not found!
        at org.apache.axis2.wsdl.codegen.writer.ClassWriter.loadTemplate(ClassWriter.java:80)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1715)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeAntBuild(AxisServiceBasedMultiLanguageEmitter.java:319)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)

   I know code generation for C# is experimental... but perhaps it's easy to fix.

3) General comment: It's kind of weird to run WSDL2Java to generate code for C or C#. The batch script should be renamed to WSDL2Code.



-- 
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] Commented: (AXIS2-1634) WSDL2Java throws exception

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503143 ] 

Davanum Srinivas commented on AXIS2-1634:
-----------------------------------------

got rid of csharp option. there is a WSDL2Code now.

thanks,
dims

> WSDL2Java throws exception
> --------------------------
>
>                 Key: AXIS2-1634
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1634
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Axis2 1.1 RC2
>            Reporter: Thilo Frotscher
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
>
> 1) Usage message printed by WSDL2Java says that "csharp" is a valid option for the language parameter. That's wrong, it must be "c-sharp"
> 2) When using "-l c-sharp" code is generated, but I get the following exception:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: template for
> this writer is not found!
>         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: template for this writer is not found!
>         at org.apache.axis2.wsdl.codegen.writer.ClassWriter.loadTemplate(ClassWriter.java:80)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1715)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeAntBuild(AxisServiceBasedMultiLanguageEmitter.java:319)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
>    I know code generation for C# is experimental... but perhaps it's easy to fix.
> 3) General comment: It's kind of weird to run WSDL2Java to generate code for C or C#. The batch script should be renamed to WSDL2Code.

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


[jira] Resolved: (AXIS2-1634) WSDL2Java throws exception

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-1634.
-------------------------------------

    Resolution: Fixed

> WSDL2Java throws exception
> --------------------------
>
>                 Key: AXIS2-1634
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1634
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Axis2 1.1 RC2
>            Reporter: Thilo Frotscher
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
>
> 1) Usage message printed by WSDL2Java says that "csharp" is a valid option for the language parameter. That's wrong, it must be "c-sharp"
> 2) When using "-l c-sharp" code is generated, but I get the following exception:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: template for
> this writer is not found!
>         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: template for this writer is not found!
>         at org.apache.axis2.wsdl.codegen.writer.ClassWriter.loadTemplate(ClassWriter.java:80)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1715)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeAntBuild(AxisServiceBasedMultiLanguageEmitter.java:319)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
>    I know code generation for C# is experimental... but perhaps it's easy to fix.
> 3) General comment: It's kind of weird to run WSDL2Java to generate code for C or C#. The batch script should be renamed to WSDL2Code.

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


[jira] Assigned: (AXIS2-1634) WSDL2Java throws exception

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-1634:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> WSDL2Java throws exception
> --------------------------
>
>                 Key: AXIS2-1634
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1634
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Axis2 1.1 RC2
>            Reporter: Thilo Frotscher
>         Assigned To: Amila Chinthaka Suriarachchi
>            Priority: Minor
>
> 1) Usage message printed by WSDL2Java says that "csharp" is a valid option for the language parameter. That's wrong, it must be "c-sharp"
> 2) When using "-l c-sharp" code is generated, but I get the following exception:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: template for
> this writer is not found!
>         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: template for this writer is not found!
>         at org.apache.axis2.wsdl.codegen.writer.ClassWriter.loadTemplate(ClassWriter.java:80)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1715)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeAntBuild(AxisServiceBasedMultiLanguageEmitter.java:319)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
>    I know code generation for C# is experimental... but perhaps it's easy to fix.
> 3) General comment: It's kind of weird to run WSDL2Java to generate code for C or C#. The batch script should be renamed to WSDL2Code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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