I know what causes error,
codes are:
MimeBodyPart mbp1=new MimeBodyPart();
mbp1.setContent(smMessagebody1,"text/plain");

MimeBodyPart is class in javamail.
The content(smMessagebody1) is wrapped in a DataHandler object. so I should
put which package path in servlet conf file?


> ----------
> From:         Rashid Mohiuddin[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Wednesday, January 05, 2000 1:57 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: java.lang.NoClassDefFoundError:
>
> please check that you have JAF package in your classpath.
>
> Regards,
>
> Rashid.
> --------------------------------------------------------------------------
> --
> Rashid Mohiuddin
> Java Consultant
> Fujitsu Singapore Ltd.
> Tel: 65-7715829
> [EMAIL PROTECTED]
> http://stop.at/rashidm
>
>
> ----- Original Message -----
> From: Nitin Gogia <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 05, 2000 12:46 PM
> Subject: Re: java.lang.NoClassDefFoundError:
>
>
> > Same error I am getting. Can anyone suggest ?
> >
> > bYe
> >
> >         ----------
> >         From:  Sun JunXu [SMTP:[EMAIL PROTECTED]]
> >         Sent:  Wednesday, January 05, 2000 8:41 AM
> >         To:  [EMAIL PROTECTED]
> >         Subject:  java.lang.NoClassDefFoundError:
> >
> >         hi,
> >         I have a servlet and it calls a class names SendMail.class in
> same
> >         directory, when I run this servlet, got error message in
> jserv.log,
> >         java.lang.NoClassDefFoundError: javax/activation/DataSource
> >                 at org.apps.lib.SendMail.sendMail(SendMail.java:33)
> >                 at
> > org.apache.jserv.JServConnection.run(JServConnection.java)
> >                 at java.lang.Thread.run(Thread.java:479)
> >
> >         how come to this?
> >         SendMail.class only has one mothed, nothing else.
> >
> >         thanks a lot.
> >
> >         sincerely
> >         sun
> >
> >
> >
> __________________________________________________________________________
> _
> >         To unsubscribe, send email to [EMAIL PROTECTED] and include
> in
> > the body
> >         of the message "signoff SERVLET-INTEREST".
> >
> >         Archives:
> > http://archives.java.sun.com/archives/servlet-interest.html
> >         Resources:
> > http://java.sun.com/products/servlet/external-resources.html
> >         LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
> __________________________________________________________________________
> _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to