[ http://issues.apache.org/jira/browse/AXIS2-1512?page=all ]
Davanum Srinivas reassigned AXIS2-1512:
---------------------------------------
Assignee: Davanum Srinivas
> ADB code generation fails when <element> is a reference to included schema
> --------------------------------------------------------------------------
>
> Key: AXIS2-1512
> URL: http://issues.apache.org/jira/browse/AXIS2-1512
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Environment: jdk1.5.0_06
> Reporter: Mariusz Woloncewicz
> Assigned To: Davanum Srinivas
> Attachments: subscribe-request.xsd, subscribe.xsd, TestServices.wsdl
>
>
> Element declaration in <wsdl:types>:
> <xs:include schemaLocation="subscribe.xsd"/>
> <xs:element name="subscribe" type="tns:SubscribeType"/>
> There is a type declaration with some element reference in subscribe.xsd:
> <xs:include schemaLocation="subscribe-request.xsd"/>
> <xs:complexType name="SubscribeType">
> <xs:sequence>
> <xs:element ref="tns:requestId"/>
> </xs:sequence>
> </xs:complexType>
> Finally, referenced element declaration in subscribe-request.xsd:
> <xs:element name="requestId" type="xs:string"/>
> ADB code generation fails with exception:
> Retrieving schema at 'subscribe.xsd', relative to 'file:/C:/JIRA/'.
> Retrieving schema at 'subscribe-request.xsd', relative to
> 'file:/C:/JIRA/subscri
> be.xsd'.
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:224)
> 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:
> java.lang.reflect.InvocationTargetExcepti
> on
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:52)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:177)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:49)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: The referenced
> el
> ement '{ws/request/beans}requestId' was not found!
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:592)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:480)
> at
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:14
> 59)
> at
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
> .java:1421)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi
> ler.java:921)
> at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(
> SchemaCompiler.java:880)
> at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
> ava:835)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:519)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
> java:490)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:32
> 7)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:23
> 9)
> at
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
> :72)
> ... 8 more
> Code generation for xmlbeans works fine with this wsdl.
--
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]