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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/02/17 11:17:05 UTC

[jira] Resolved: (AXIS2-1681) SchemaCompilationException: Type missing!

     [ https://issues.apache.org/jira/browse/AXIS2-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-1681.
-------------------------------------------------

    Resolution: Fixed

with the addition of enumeration support this works fine now.

> SchemaCompilationException: Type missing!
> -----------------------------------------
>
>                 Key: AXIS2-1681
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1681
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.0
>         Environment: Mac OS X Java is java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Patrick Podenski
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: er.wsdl, Person.wsdl, Person.xsd
>
>
> Exception occurs when trying to generate Java code for a simple WSDL with imported XML Schema.
> This example generates correctly using Axis 1.3 in Eclipse 3.2.1 + WTP 1.5.1.
> I will enclose the related WSDL and XSD files. Note that the same error occurs when the XML Schema is inlined in the WSDL.
> The exact script used is as follows (defaults to adb):
> WSDL2Java.sh -uri Person.wsdl -ss -sd
> And the resultant exception and stack trace follows:
> Retrieving schema at 'Person.xsd'.
> l
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException: Type missing!
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
>         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: Type missing!
>         at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:117)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
>         ... 2 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: Type missing!
>         at org.apache.axis2.schema.writer.JavaBeanWriter.addPropertyEntries(JavaBeanWriter.java:464)
>         at org.apache.axis2.schema.writer.JavaBeanWriter.populateInfo(JavaBeanWriter.java:426)
>         at org.apache.axis2.schema.writer.JavaBeanWriter.getBeanElement(JavaBeanWriter.java:403)
>         at org.apache.axis2.schema.writer.JavaBeanWriter.process(JavaBeanWriter.java:320)
>         at org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:175)
>         at org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:634)
>         at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:620)
>         at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:577)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)
>         at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)
>         at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
>         at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)
>         at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:616)
>         at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:577)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)
>         at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)
>         at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
>         at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)
>         at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)
>         at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)
>         at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:226)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:181)
>         at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:70)
>         ... 3 more

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