Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Stack overflow in generating project.xml


I debugged into this issue and found that EclipseLink is getting tangled up
in our schemas.  What we're doing in the schemas doesn't seem to be that
weird, but please tell me if it is.

I'm doing an XML-Direct mapping for Address.attentionOfName that has an
XPath like "ns1:AttentionOfName/text()".

In the top-level schema First.xsd, we have Address defined this way:

	<xsd:complexType name="AddressBaseType" abstract="true">
			<xsd:element ref="AttentionOfName" minOccurs="0" maxOccurs="unbounded"/>
	<xsd:complexType name="AddressType">
			<xsd:extension base="AddressBaseType">
The top-level schema includes a second schema:  <xsd:include

The second schema includes a third schema:  <xsd:include

Third.xsd has:
	<xsd:element name="AttentionOfName" type="NameType"></xsd:element>

	<xsd:complexType name="NameType">
			<xsd:extension base="foo:NameType"/>

Third.xsd references Fourth.xsd this way:

	<xsd:import namespace="";

Fourth.xsd says:
        <xsd:complexType name="NameType">
                        <xsd:extension base="xsd:string">
                                <xsd:attribute name="languageID"
type="xsd:language" use="optional">

By using the debugger, I can see that EclipseLink finds the ComplexType
"NameType" declared inside Fourth.xsd (I can tell by the namespace), but
then it just keeps going around and around, thinking that foo:NameType
extends foo:NameType.  It never figures out that foo:NameType extends
xsd:string and stops.  I looked inside the XML file that the workbench
generated for First.xsd, and I can't really make sense of it.  I don't see
any mention of NameType extending any String type though.  

Is this kind of configuration supported in EclipseLink?


amphoras wrote:
> Just to clarify, I mean that when I right-click the project and select
> Export -> Project Deployment XML..., I get the stack overflow error.
> Thanks,
> Polly 

View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top