Title: RE: [castor-dev] Big Problem please !! org.exolab.castor.mapping.MappingException: Nested error: org.exolab.castor.mapping.MappingException: Could not find the class com.francetelecom.categorization.Canal
            I don't understand something the mapping file is use to map juste one table with one object because my mapping file describe the mapping with 3 table and i don't think that my object mapping must be set with the only Canal ClassLoader.
    Thank you  for a response !
    Charly
---------------------- 

        Yes it's true I use Castor in a servlet engine
        and i set yhe ClassLoader for the mapping like this when i have
the error:

        _mapping = new Mapping(this.getClass().getClassLoader());

        but I try with our solution but I have the same error
       
        Charly
----------------------------------------------------------------

Looks like a classpath problem.

If you are using Castor inside an application server or servlet engine
make sure you set the ClassLoader for the Mapping.

Mapping mapping = new Mapping( Canal.class.getClassLoader() );

--Keith


zze-BINTEIN Charly FTRD/DMI/CAE wrote:
>
> >               Excuse me i have a little problem
> >
> >               I have my files mapping.xml and database.xml in the
directory \categorization\defaultroot
> >               but my classes are in the directory
\categorization\classes\com\francetelecom\categorization
> >               and when i'm parsing the mapping file i have the
exception:
> >                       org.exolab.castor.mapping.MappingException:
Nested error: org.exolab.castor.mapping.MappingException: Could not find
the class com.francetelecom.categorization.Canal
> >
> >               Can you help me please
> >               charly
> >
>
> -----------------------------------------------------------
> 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