You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having some issues understanding how to avoid the error mentioned above while trying to generate some Java classes from XSDs.
I know the XSDs are correct because xsdata, a Python tool, can generate good Python classes from the same files and I am probably missing some specific config.
I cannot share those XSDs here unfortunately. Is there any change the error message I pasted above give you any hints at all?
But let me try to extract the some useful information to make it easier for you to help me maybe.
I have a complexType with some complex content which contains the problematic element throwing the above mentioned error: <xs:element name="flight" type="fx:MyType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation>Some doc.</xs:documentation> </xs:annotation> </xs:element>
MyType is imported from another XSD, which defines it. IntelliJ is able to navigate the relationship correctly: <xs:complexType name="MyType"> ...
Even xjc from command line fails for the same reason.
Tried with different JVM versions from Java 8 till Java 17.
Any clue what might be wrong please?
The text was updated successfully, but these errors were encountered:
I have the same issue with that. Seems it's related to referring to the type with a prefix. I haven't been able to solve this up to now so I'd appreciate any feedback someone might have.
Dear jaxb2-maven-team,
I am having some issues understanding how to avoid the error mentioned above while trying to generate some Java classes from XSDs.
I know the XSDs are correct because xsdata, a Python tool, can generate good Python classes from the same files and I am probably missing some specific config.
I cannot share those XSDs here unfortunately. Is there any change the error message I pasted above give you any hints at all?
But let me try to extract the some useful information to make it easier for you to help me maybe.
I have a complexType with some complex content which contains the problematic element throwing the above mentioned error:
<xs:element name="flight" type="fx:MyType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation>Some doc.</xs:documentation> </xs:annotation> </xs:element>
MyType is imported from another XSD, which defines it. IntelliJ is able to navigate the relationship correctly:
<xs:complexType name="MyType"> ...
Even xjc from command line fails for the same reason.
Tried with different JVM versions from Java 8 till Java 17.
Any clue what might be wrong please?
The text was updated successfully, but these errors were encountered: