This is often a bug in a webapps. Each web app has its own 'classloader'
space. You cannot cast a class loaded in one class loader to a class loaded
from another. Try moving the Jars for your webapp into the servlet
containers lib directory, or have them all in the WEB-INF/lib directory of
your WAR file - but not in both places


----- Original Message -----
From: "Manish Raje" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 5:56 AM
Subject: [castor-dev] ClassCastException while unmarshalling


> Hi,
>
> We are getting a java.lang.ClassCastException when we
> are trying to cast the object that unmarshall returns
> to "our-type".
> We are using Castor in a Servlet.
> The same mapping file and the input-xml work perfectly
> fine as a standalone application.
> However, with the servlet, we are getting the above
> ClassCastException.
>
> Any help, pointers are welcomed.
>
> Thanking in advance,
> Manish.
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> -----------------------------------------------------------
> 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