Women in Technology

Hear us Roar



Article:
  XML Data Binding with Castor
Subject:   How to get Address Books from XML file using mapping file
Date:   2003-12-01 02:01:11
From:   thong39th
I run ViewAddressBook class that I get from this article. But I get a message likes following:


org.exolab.castor.mapping.MappingException: Nested error: org.exolab.castor.mapping.MappingException: Could not find the class Person


But I have had Person class and AddressBook Class already. I don't know why. Please help me.


Thanks.


Main Topics Oldest First

Showing messages 1 through 4 of 4.

  • How to get Address Books from XML file using mapping file
    2004-03-11 13:19:03  starlightpurple [View]

    Hi,

    Is your Person class in a package? If so you will need to modify the mapping.xml file to include the package name before the class name. For example if you put the Person class in a package called MyPackage you would make the following changes to the mapping.xml file:

    * change <class name="Person"> to:
    <class name="MyPackage.Person">

    * change <field name="persons" type="Person" collection="collection" /> to:
    <field name="persons" type="MyPackage.Person" collection="collection" />

    Hope this helps.
  • How to get Address Books from XML file using mapping file
    2003-12-12 06:00:21  anonymous2 [View]

    i want to know also
  • How to get Address Books from XML file using mapping file
    2003-12-12 06:00:11  anonymous2 [View]

    i want to no also
  • How to get Address Books from XML file using mapping file
    2003-12-01 18:43:24  anonymous2 [View]

    Hi,