This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes JavaMail, servlet error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail, servlet error" Watch "JavaMail, servlet error" New topic

JavaMail, servlet error

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Hi, I have tried to send mail through a java file. It worked fine.
but, when I try to copy the same code to my servlet it gave errors, from line 29 to 36 that "@Override method does not override or implement a method from a super-type"

any help...

Servlet code:
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41034
Both JSE and JEE each have a class called PasswordAuthentication - you're importing the wrong one.

Ping & DNS - my free Android networking tools app
malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Thanks a lot man...

It is sorta covered in the JavaRanch Style Guide.
subject: JavaMail, servlet error
Similar Threads
How to configure localhost to send email.
Getting javax.mail.SendFailedException: Sending failed; Please Help its Urgent
How to send mail form java application
SHA1 digest error for javax/mail/MessagingException
java mail