Hello everybody,
I'm having a problem with Castor unmarshalling: it doesn't resolve correctly the name of classes placed in different packages.
I explain: in my project i got two packages
The object SaveMyEntityRequest has a field of type MyEntity. When I send this request, Castor tries to unmarshall the inner property of SaveMyEntityRequest as a myProject.schema.MyEntity object resulting in a MarshaException, even if in the Castor mapping file I specifieldCode:myProject.entities MyEntity myProject.schema SaveMyEntityRequest
The error message i receive isCode:<class name="myProject.entities.MyEntity" auto-complete="false"> <map-to name="MyEntity"....> ...... </class> <class name="myProject.schema.saveMyEntityRequest" auto-complete="false"> <map-tp name="SaveMyEntityRequest"......> <field name="entity" type="myProject.entities.MyEntity"> <bind-xml name="entity" node="element" /> </field> ...... </class>
I know it looks like a Castor issue, but I didn't find any info in Castor documentation.Code:Castor unmarshalling exception: unable to find FieldDescriptor for 'entity' in ClassDescriptor of SaveMyEntityRequest; nested exception is org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'entity' in ClassDescriptor of SaveMyEntityRequest
Thanks
Ste


Reply With Quote
