JAXB - cannot resolve symbol on compiling
843834Sep 8 2003 — edited Sep 8 2003I have a xsd file from which I successfully generated the java files using xjc. However, when I come to compile these files, I always get lots of 'cannot resolve symbol' errors for the generated files.
I must be getting the namespaces wrong somewhere but I can't see where! My package is called Wf and in the Wf directory are all the java files for the interfaces for the complex types defined in my xsd file. The errors I get almost seem to be based on the order of compilation - Wf.java complains that WfType can not be resolved, but WfType is not yet compiled although the java file is present, and so on through the interfaces.
Is my problem something to do with the hierarchy defined in the xsd? It starts:
<xsd:element name="Wf" type="WfType"/>
<xsd:element name="comment" type="xsd:string"/>
<xsd:complexType name="WfType">
<xsd:sequence>
<xsd:element name="WfWait" type="WfWaitStepType"/>
<xsd:element name="WfSendEmail" type="WfSendEmailStepType"/>
<xsd:element ref="comment" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
and then goes on to define the other complex types.
Any suggestions greatly appreciated!