axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michel.Drescher (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-531) WSDL2Java: Buggy command line parsing
Date Tue, 28 Mar 2006 14:31:22 GMT
WSDL2Java: Buggy command line parsing
-------------------------------------

         Key: AXIS2-531
         URL: http://issues.apache.org/jira/browse/AXIS2-531
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: Tools  
    Versions: 0.95    
 Environment: Axis2 0.95 standard binary release
    Reporter: Michel.Drescher
    Priority: Minor


The way WSDL2Java parses the command line parameters is buggy:

"sh WSDL2Java.sh -uri ./example.wsdl -s -ss -sd -p com.example.impl -d xmlbeans -g -o ./"

works fine (no exceptions thrown - didn't check the generated code yet) while 

"sh WSDL2Java.sh -uri ./example.wsdl -o ./ -s -ss -sd -p com.example.impl -d xmlbeans -g"

throws the following exception:

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
org.apache.axis2.schema.SchemaCompilationException: Unsupported content Simple Content Extension
!
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:146)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException:
Unsupported content Simple Content Extension !
        at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:162)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:101)
        ... 2 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported content Simple
Content Extension !
        at org.apache.axis2.schema.SchemaCompiler.processSimpleContent(SchemaCompiler.java:803)
        at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:672)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:654)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:604)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:569)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:360)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:328)
        at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:899)
        at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:862)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:631)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:604)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:569)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:360)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:338)
        at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:220)
        at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:179)
        at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:115)
        ... 3 more

Note that in both commands only the -o parameter changed position.

This works with any WSDL file that uses Simple Content Extension.

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