[
http://jira.codehaus.org/browse/JIBX-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112853
]
Rudy Moury commented on JIBX-154:
---------------------------------
I need to use xsd2jibx-beta2b (with Jibx 1.1.5 JAR files) for producing classes
and a jibx binding file converting a .wsdl webservice schema in a .xsd schema.
And in this .xsd schema, i import several schemas like the .xsd schema of
SOAP/Encoding : http://schemas.xmlsoap.org/soap/encoding/ which i save to the
soap_encoding.xsd in my project.
But when xsd2jibx was trying to unmarshall this schema, this bug occured :
2007-11-05 17:08:35,197 [main] INFO org.jibx.xsd2jibx.XsdSchema - unmarshall
schema: http://schemas.xmlsoap.org/soap/encoding/
org.jibx.xsd2jibx.GeneratorException: unable to unmarshall
Root cause: org.jibx.runtime.JiBXException: Expected "complexType" end tag,
found "group" start tag (line 57, col 43)
at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:380)
at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
Caused by: org.jibx.runtime.JiBXException: Expected "complexType" end tag,
found "group" start tag (line 57, col 43)
(...)
Following the part of the .xsd file in fault :
<xs:element name="Array" type="tns:Array"/>
<xs:complexType name="Array">
<xs:annotation>
<xs:documentation>
'Array' is a complex type for accessors identified by position
</xs:documentation>
</xs:annotation>
<xs:group ref="tns:Array" minOccurs="0"/>
<xs:attributeGroup ref="tns:arrayAttributes"/>
<xs:attributeGroup ref="tns:commonAttributes"/>
</xs:complexType>
xsd2jibx-beta2b just fail to parse this piece of code [ Expected "complexType"
end tag, found "group" start tag ].
> Fails when <xsd:group> falls within an <xsd:complexType> block
> --------------------------------------------------------------
>
> Key: JIBX-154
> URL: http://jira.codehaus.org/browse/JIBX-154
> Project: JiBX
> Issue Type: Bug
> Components: xsd2jibx
> Affects Versions: xsd2jibx-beta0.2
> Environment: Suse SLED10 Linux, Sun Java 1.5.0_11
> Reporter: Randal Cobb
> Priority: Critical
> Attachments: PayrollFederalTaxWithholding-RAC.wsdl~,
> PayrollFederalTaxWithholding-RAC.xsd, soap_encoding.xsd
>
>
> When using the xsd2jibx tool (rebuilt and repackaged to use the jibx 1.1.3
> libraries) on the attached xsd, the following exception is thrown:
> org.jibx.xsd2jibx.GeneratorException: unable to unmarshall
> Root cause: org.jibx.runtime.JiBXException: Expected "complexType" end tag,
> found "group" start tag (line 18, col 31)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:380)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
> at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
> Caused by: org.jibx.runtime.JiBXException: Expected "complexType" end tag,
> found "group" start tag (line 18, col 31)
> at
> org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:793)
> at org.jibx.xsd2jibx.JiBX_xsdXsdComplexType_access.unmarshal()
> at org.jibx.xsd2jibx.JiBX_MungeAdapter.JiBX_xsd_unmarshal_1_1()
> at org.jibx.xsd2jibx.XsdSchema.JiBX_xsd_unmarshal_1_0(XsdSchema.java)
> at org.jibx.xsd2jibx.JiBX_xsdXsdSchema_access.unmarshal()
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2538)
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2681)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:378)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
> at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
> Cause: org.jibx.runtime.JiBXException: Expected "complexType" end tag, found
> "group" start tag (line 18, col 31)
> at
> org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:793)
> at org.jibx.xsd2jibx.JiBX_xsdXsdComplexType_access.unmarshal()
> at org.jibx.xsd2jibx.JiBX_MungeAdapter.JiBX_xsd_unmarshal_1_1()
> at org.jibx.xsd2jibx.XsdSchema.JiBX_xsd_unmarshal_1_0(XsdSchema.java)
> at org.jibx.xsd2jibx.JiBX_xsdXsdSchema_access.unmarshal()
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2538)
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2681)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:378)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
> at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
> This same xsd works fine when used with XMLBeans
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs