Activation-1.1.1 is in the WEB-INF/lib folder in my webapp. /Ludwig -----Original Message----- From: Charles Deal [mailto:[email protected]] 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 <[email protected]>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.<init>(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: [email protected] For additional commands, e-mail: [email protected]
