axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilo Frotscher (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-1634) WSDL2Java throws exception
Date Tue, 07 Nov 2006 10:26:50 GMT
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


Mime
View raw message