axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1512) ADB code generation fails when <element> is a reference to included schema
Date Wed, 31 Jan 2007 05:10:05 GMT

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

Davanum Srinivas updated AXIS2-1512:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi  (was: Davanum Srinivas)

> ADB code generation fails when <element> is a reference to included schema
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1512
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1512
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>         Environment: jdk1.5.0_06
>            Reporter: Mariusz Woloncewicz
>         Assigned To: Amila Chinthaka Suriarachchi
>         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.
-
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


Mime
View raw message