[ http://issues.apache.org/jira/browse/AXIS2-1681?page=comments#action_12449399 ] Patrick Podenski commented on AXIS2-1681: -----------------------------------------
After some additional investigation we determined that the exception reported in this bug no longer occurs when the hairColor enumeration is removed from the Person type in the XML Schema. Since an enumeration is rather standard part of XML Schema, the reported exception would seem to reflect an incomplete implementation of the XML Schema. > SchemaCompilationException: Type missing! > ----------------------------------------- > > Key: AXIS2-1681 > URL: http://issues.apache.org/jira/browse/AXIS2-1681 > Project: Apache 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 > Attachments: 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. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
