Paromita,

can you please try to use 

Marshaller.setClassLoader (getClass().getClassLoader())

before trying to marshall your objects ?

Regards
Werner

On Fri, 11 Feb 2005 20:38:29 +0530, Ghosh, Paromita \(Cognizant\) wrote:

>
>Yes They are all present in the WEB-INF/classes directory. The strange thing 
>is that when I include the files in the weblogic classpath it works , but 
this is not a acceptable solution. Somehow cannot read from WEB-INF may be a 
weblogic problems.
>
>Thanks and Regards,
>Paromita
>Tel. India +91 33 3573211/12/13 ext 3503
>      US     +1 201 678 3232 ext 33503
>      Vnet   33503
>
>
>
>-----Original Message-----
>From: Bryan LaPlante [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 11, 2005 8:31 PM
>To: [email protected]
>Subject: Re: [castor-user] mapping exception
>
>
>
>Are the classes you are referring to in the WEB-INF/classes directory of
>your web app?
>
>----- Original Message -----
>From: "Ghosh, Paromita (Cognizant)" <[EMAIL PROTECTED]>
>To: <[email protected]>
>Sent: Friday, February 11, 2005 9:14 AM
>Subject: [castor-user] mapping exception
>
>
>
>I have been using the castor 9.5.4 jar for the Marshalling to Objects in our
>project. I have created a Mapping File in which I have mentioned classes.
>But when I try to marshal the object I get a mapping error saying
>"org.exolab.castor.mapping.MappingException: Could not find the class " . I
>am not sure why I am getting this error.  When I run the code in a stand
>alone mode it work fines but when I run the same code from inside weblogic I
>get this error. Should I add the classes to marshalled explicitly in the
>classpath of the app server? Where do I save my Mapping XML file?
>
>Any kind of help will be appreciated.
>
>Thanks and Regards,
>Paromita
>Tel. India +91 33 3573211/12/13 ext 3503
>      US     +1 201 678 3232 ext 33503
>      Vnet   33503
>
>
>This e-mail and any files transmitted with it are for the sole use of the
>intended recipient(s) and may contain confidential and privileged
>information.
>If you are not the intended recipient, please contact the sender by reply
>e-mail and destroy all copies of the original message.
>Any unauthorised review, use, disclosure, dissemination, forwarding,
>printing or copying of this email or any action taken in reliance on this
>e-mail is strictly
>prohibited and may be unlawful.
>
>  Visit us at http://www.cognizant.com
>
>
>
>
>----------------------------------------------------------------------------
>----
>
>
>> -----------------------------------------------------------
>> If you wish to unsubscribe from this mailing, send mail to
>> [EMAIL PROTECTED] with a subject of:
>>         unsubscribe castor-user
>>
>
>
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
>        unsubscribe castor-user
>
>This e-mail and any files transmitted with it are for the sole use of the 
>intended recipient(s) and may contain confidential and privileged information.
>If you are not the intended recipient, please contact the sender by reply 
>e-mail and destroy all copies of the original message.
>Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
>or copying of this email or any action taken in reliance on this e-mail is 
strictly
>prohibited and may be unlawful.
>
>  Visit us at http://www.cognizant.com
>
>



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

Reply via email to