I forgot to upload the mapping file where I am using reference attribute.
Now I uploaded the mapping file. In my actula main method, I am just
creating the object and again trying to marshal the same object. During
marshal, I am getting the mentioned exception.
Objects node1 = (Objects)util.unmarshal(new FileReader( "C:/sample.xml"));
System.out.println("nodeStr =" + util.marshal(node1));
Werner Guttmann-6 wrote:
>
> Hi,
>
> without a bit more of information, we will NOT be able to help you with
> your problem. Why don't you show us the relevant parts of your mapping
> file, show us the exception (trace), explain what you are trying to
> achieve with castor, etc.
>
> Kind Regards
> Werner
>
> On 18.02.2011 14:57, nekkanti wrote:
>>
>> I am getting the exception when I try to use references in mapping.xml
>>
>> unable to resolve ID for instance of class 'java.lang.String' due to the
>> following error: Unable to resolve ClassDescriptor
>>
>> When I try to unmarshal the sample.xml and again marshal it, I am getting
>> the error I mentioend above
>>
>> http://old.nabble.com/file/p30958869/sample.xml sample.xml
>> http://old.nabble.com/file/p30958869/Test.java Test.java
>> http://old.nabble.com/file/p30958869/TestNode.java TestNode.java
>> http://old.nabble.com/file/p30958869/Obj.java Obj.java
>> http://old.nabble.com/file/p30958869/Objects.java Objects.java
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
http://old.nabble.com/file/p30974930/mapping.xml mapping.xml
http://old.nabble.com/file/p30974930/mapping.xml mapping.xml
--
View this message in context:
http://old.nabble.com/How-to-use-reference-attribute-in-mapping.xml--tp30958869p30974930.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email