Hi, You should check your systemID: http://castor.explab.org/mapping.dtd is not the correct one. Make sure you use http://castor.exolab.org/mapping.dtd Also if you are unsure about using the validation or not of the mapping file, you can simply remove the DTD declaration.
Arnaud > -----Original Message----- > From: Ilango J [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 10:37 AM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] null objects > > This is my mapping file.I couldn't find any difference by changing the C > into c. > > <?xml version="1.0"?> > <!DOCTYPE mapping PUBLIC "-EXOLAB/Castor object Mapping DTD Version > 1.0//EN" "http://castor.explab.org/mapping.dtd"> > > <mapping> > <description>A mapping file for our Address Book application</description> > > > <class name="Person"> > <field name =""name" node="String"/> > <bind-xml name="name" node="attribute"/> > </field> > <field name="address" type="String"/> > <field name="ssn" type="String"/> > <field name="email" type="String"/> > <field name="homePhone" type="String"/> > <field name="workPhone" type="String"/> > </class> > > <class name="Addressbook"> > <field name="name" type="String"> > <bind-xml name="name" node="attribute"/> > </field> > <field name="persons" type="Person" collection="collection"/> > </class> > > </mapping> > > > -----Original Message----- > From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 2:48 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] null objects > > > Hi, > > Try to replace the capital 'C' by 'c' in the definition of the DTD > systemID in your mapping file. > > Arnaud > > > -----Original Message----- > > From: Ilango J [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 13, 2002 10:06 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [castor-dev] null objects > > > > Hi, > > Could any one guide me what might be the problem in my code if the > following > > exeptions appears while run time. > > > > org.exolab.castor.mapping.MappingException: Nested error: > > java.net.UnknownHostException: Castor.exolab.org > > > > -iLAN > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev