Arun- This is most likely your XML parser attempting to fetch the DTD for the mapping file from castor.exolab.org (now a defunct URL). I actually just this weekend wrote a how-to about this problem, but it hasn't been released to the website yet.
Probably the easiest test is to change your DOCTYPE in the mapping file to: <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd"> and see if that solves the problem. Castor uses a custom EntityResolver when loading the mapping file, so if your public ID matches the one in the code, Castor tell the parser fetch the DTD from the Castor JAR rather than going to the network. Let me know if you have further problems. Stephen On 3/13/06, Arunkumar Soundararajan <[EMAIL PROTECTED]> wrote: > Hi > > Im facing a strange error while unmarshalling. > It gives me java.net.UnknownHostException: castor.exolab.org when I try > to do unmarshalling. Its a simple java bean. > > The content to parse is below > > Ex: > <root> > <VAL nombre="ANTENA 3" fecha_hora="2006-03-10T17:35:00" ultimo="22,67" > dif="-0,06" dif_porcent="-0,26 %" max="22,75" min="22,5" > volumen="291033" maximo_12_meses="24" minimo_12_meses="13,99"/> > <VAL nombre="ACCIONA" fecha_hora="2006-03-10T17:35:00" ultimo="114,35" > dif="1,95" dif_porcent="1,73 %" max="114,4" min="111,4" volumen="154649" > maximo_12_meses="120" minimo_12_meses="65"/> > </root> > > This is how I have mapped. > > <?xml version="1.0" encoding="UTF-8"> > <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version > 1.0//EN" "http://castor.exolab.org/mapping.dtd"> > <mapping> > <description>A mapping file for Terra Quotations of > companies</description> > <class > name="com.lightsurf.alertscore.channelqueue.terrabusiness.TerraQuotationOfCompaniesList"> > <map-to xml="root"/> > <field name="quotationItems" > type="com.lightsurf.alertscore.channelqueue.terrabusiness.TerraQuotationOfCompaniesBean" > collection="arraylist"> > <bind-xml name="VAL"/> > </field> > </class> > > <class > name="com.lightsurf.alertscore.channelqueue.terrabusiness.TerraQuotationOfCompaniesBean"> > <field name="quotationName" type="string"> > <bind-xml name="nombre" node="attribute"/> > </field> > <field name="minOf12Months" type="string"> > <bind-xml name="minimo_12_meses" node="attribute"/> > </field> > </class> > </mapping> > > > Any thoughts on the above would just be great. > > Arun > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > >

