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

Reply via email to