• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp-mail issue

 
dkumar kizhakkel
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I create a mailSend.java file in NewPack in WEB-INF.
import this mailSend class in jsp.
<%@ page import="NewPack.*" %>
The mail.jar and activation.jar available int the same dir.
But I got
org.apache.jasper.JasperException: Unable to compile class for JSP:
JSP FileName:/htmls/comments_confirm.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/work/Catalina/localhost/APP1//org/apache/jsp/htmls\comments_005fconfirm_jsp.java

An error occurred at line: 56 in the jsp file: /htmls/comments_confirm.jsp
The type javax.mail.MessagingException cannot be resolved. It is indirectly referenced from required .class files
53:
54: mailSend myMails = new mailSend();
55:
56: myMails.postMail ("dineshkizhakkel@gmail.com", Subject, MsgText, Email);

But the same Application is working in another machine.

Thanks In Advance
Dinesh
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you put mail.jar?
 
dkumar kizhakkel
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in WEB-INF/classes/NewPack directory
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jar files belong in WEB-INF/lib.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!