Scott's solution is best so that the DOCTYPE remains in the mapping file
and validation can occur. Another solution is to simply remove the
DOCTYPE all together, however this will prevent validation of your
mapping file if you have xml parser validation enabled.

--Keith

Scott Sims wrote:
> 
> Where?!?!?!  In your DOCTYPE of your mapping file, that's where.
> 
> Since you are using a mapping file you can change <!DOCTYPE mapping PUBLIC
> "-//EXOLAB/Castor Object Mapping DTD Version
> 1.0//EN" "http://castor.exolab.org/mapping.dtd";> to something like <!DOCTYPE
> mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version
> 1.0//EN" "file:///D:/castor/castor-0.9.3.19/doc/mapping.dtd"> (if you want
> to pull the DTD off of your local machine.  If not, specify a valid address
> on your local network.  The mapping.dtd seems to appear in several places on
> my machine under the Castor install directory.
> 
> Hope that helps,
> Scott
> 
> -----Original Message-----
> From: Isabelle Therrien [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 04, 2002 2:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Connection to Castor.exolab.org while loading
> mapping file
> 
> Change where?!?!?!
> Anyway, that is not what I want: I don't want my application to depend on
> the up-and-downs of the machines in Exolab! Is it possible for me to run
> my application without having to lookup for a url?
> 
> Isabelle
> 
> --
> 
> On Fri, 4 Oct 2002, Scott Sims wrote:
> 
> > Isabelle,
> >
> > Change the "C" in Castor to lower case and it should work.
> >
> > Scott
> >
> > -----Original Message-----
> > From: Isabelle Therrien [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, October 04, 2002 1:45 PM
> > To: [EMAIL PROTECTED]
> > Subject: [castor-dev] Connection to Castor.exolab.org while loading
> > mapping file
> >
> >
> >
> > Hi
> >
> > I got this exception yesterday before noon everytime I tried to load my
> > mapping file.  It was looking like that, but unfortunately, I did not take
> > note of the exact words.
> >
> > --
> > Exception raised in org.exolab.castor.mapping.Mapping:
> > MappingException: caused by: ConnectException: failed to connect to
> > Castor.exolab.org on port 80
> > --
> > (Castor with a capital C)
> >
> >
> > In fact, even in a browser I could not resolve the url
> > "http://Castor.exolab.org"; yesterday before noon, from here.
> >
> > But the real question is, what am I doing wrong to get the Castor jar file
> > to connect to your machine?!?!  Isn't a jar file supposed to work in a
> > standalone way? I assume it is something I do wrong because no one on your
> > list seem to worry about that.  But because of that, all our application
> > is down!
> >
> > I searched the jar file, I searched the source code, but I didn't find
> > anywhere the String "Castor.exolab.org" except in the documentation.
> >
> > I use Castor in a J2EE 1.2 application
> > version: castor-0.9.3.9
> > Java HotSpot(TM) Client VM (build 1.3.1_03-b03, mixed mode)
> > BEA Weblogic Server 6.1, running on RedHat Linux (kernel 2.4.9-12)
> >
> > This is the code that throws the exception:
> >
> > public class XMLSerializer {
> >
> >       static Mapping map= null;
> >         static        {
> >            if(map==null)
> >            {
> >                map= new Mapping();
> >
> >                // The exception is thrown in the line below
> >                map.loadMapping("[...]/mapping.xml");
> >            }
> >       }
> >
> >       static public String toXML(Object objectToSerialize){
> >               [...]
> >       }
> >
> >       static public Object fromXML(String xmlString){
> >               [...]
> >       }
> > }
> >
> >
> > Any help would be appreciated,
> >
> > ------------------------
> > Isabelle Therrien
> > software developer
> > CIRANO, Montr�al, Qu�bec
> > ------------------------
> >
> > -----------------------------------------------------------
> > 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

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to