Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 4503 invoked from network); 18 Dec 2009 12:38:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Dec 2009 12:38:07 -0000 Received: (qmail 78522 invoked by uid 500); 18 Dec 2009 12:38:06 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 78419 invoked by uid 500); 18 Dec 2009 12:38:06 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 78409 invoked by uid 99); 18 Dec 2009 12:38:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 12:38:05 +0000 X-ASF-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.85.219.218] (HELO mail-ew0-f218.google.com) (209.85.219.218) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 12:37:57 +0000 Received: by ewy10 with SMTP id 10so3879176ewy.10 for ; Fri, 18 Dec 2009 04:37:36 -0800 (PST) Received: by 10.213.100.139 with SMTP id y11mr10278099ebn.83.1261139855626; Fri, 18 Dec 2009 04:37:35 -0800 (PST) Received: from GreenStreet (h59ec0d32.stgertrud.dyn.perspektivbredband.net [89.236.13.50]) by mx.google.com with ESMTPS id 15sm1902238ewy.8.2009.12.18.04.37.34 (version=SSLv3 cipher=RC4-MD5); Fri, 18 Dec 2009 04:37:34 -0800 (PST) From: "Ludwig Magnusson" To: "'Commons Users List'" References: <002c01ca7fc4$eb63e330$c22ba990$@com> In-Reply-To: Subject: RE: [EMAIL] Problem with mimemessage Date: Fri, 18 Dec 2009 13:37:32 +0100 Message-ID: <003a01ca7fde$ded99870$9c8cc950$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acp/3YIOTk9CKpmlT5uwu4XvujVdrQAAUO7w Content-Language: sv Activation-1.1.1 is in the WEB-INF/lib folder in my webapp. /Ludwig -----Original Message----- From: Charles Deal [mailto:chuckdeal97@gmail.com] Sent: den 18 december 2009 13:27 To: Commons Users List Subject: Re: [EMAIL] Problem with mimemessage Is it possible that the javamail/activation jars are in common lib folders of your application server? For instance Tomcat has common/lib, shared/lib, and server/lib. On Fri, Dec 18, 2009 at 4:31 AM, Ludwig Magnusson wrote: > Hello! > > I want my webapp to send emails to its users. > > I'm using turbine, which has VelocityEmail, that uses commons email, which > in turn uses javamail. > > I realize that this may be a javamail problem but since the Email class in > commons-email always uses javamail I am asking here to see if anyone have > had the same problem. This list is much more active than javamails own. > > > > The problem is that when I compile my app, everything works, but when I run > my webapp I get this error: > > > > java.lang.UnsupportedOperationException: Method not yet implemented > > at > javax.mail.internet.MimeMessage.(MimeMessage.java:89) > > at > org.apache.commons.mail.Email.buildMimeMessage(Email.java:1011) > > at > org.apache.commons.mail.Email.send(Email.java:1162) > > at > org.apache.turbine.util.velocity.VelocityEmail.send(VelocityEmail.java:265) > > > > If I goto line 89 in MimeMessage, it consists of javadoc text so obviously > something is wrong. > > > > I have tried commons email 1.0, 1.1 and 1.2 all with javamail 1.4.1 and > 1.4.3 but I always get this error. > > I also worte a small program that uses the exact same code to send the > email > and I run it via eclipse. There it works. This suggests that the file I > have > in WEB-INF/lib is wrong but it is the same one I have linked as a > referenced > library in eclipse. > > > > I googled a bit and found other people having the same problem. The > solution > there was to make sure that the file in the lib directory was the correct > one, but as I said, I have already checked this. > > Does anyone recognize this error? > > /Ludwig > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org