Article View: borland.public.jbuilder.java.api
Article #1052Re: JavaMail - no classdef founf javax/activation/DataSource ???
From: Joi Ellis [TeamB]
Date: Sun, 05 May 2002 12:31
Date: Sun, 05 May 2002 12:31
33 lines
2336 bytes
2336 bytes
Ashish Agnihotri <ashishagnihotri@rediffmail.com> wrote: > Hi community, > I am a newbie for the JavaMail APIs. What I am trying is to create a servlet > that handles amail request from an HTML page and sends the mail to the > address as specified in the page. The problem arises when I try to > instantiate a new Message Objewct using the following statement > Message msg = new MimeMessage(session); > The exception - No classdef found javax/activation.DataSource arises and the > program stops. What could be the reason for this error to occur. Can anyone > help. ANy help will be greatlt appreciated. The java.mailx package depends upon the javax.activation package. The install notes, readme, etc for the javamail package should have said this. Add the "JavaBeans Activation Framework" library to your Project | Project Properties | Paths | Required Libraries. If you don't already have that library, download the package from Sun and use Tools | Configure Libraries | New to create it, first. -- Joi Ellis (TeamB) http://www.teamb.com/ No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3cd5262c_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news.maxwell.syr.edu!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews!not-for-mailReferences:
<3cd50ed8_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,73f0feae1dfa3d4f
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-05 05:34:47 PST
Sender: Joi Ellis <joi@artoo.gyles19.visi.com>
Message-ID: <3cd5262c_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: JavaMail - no classdef founf javax/activation/DataSource ???
Newsgroups: borland.public.jbuilder.java.api
References: <3cd50ed8_1@dnews>
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.19-6.2.7 (i686))
NNTP-Posting-Host: 209.98.6.107
Date: 5 May 2002 05:31:41 -0700
X-Trace: dnews 1020601901 209.98.6.107 (5 May 2002 05:31:41 -0700)
Lines: 33
X-Authenticated-User: jellis
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news.maxwell.syr.edu!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews!not-for-mail