  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Need help to send email with servlet | Need help to send email with servlet 2004-01-05 - By Lambok Sianturi
Back Hi all, i try to copy the servlet for sending email from Tomcat 4.0.4 example and use it in our company technical support web application. I have also add the <resource-ref> <res-ref-name>mail/Session</res-ref-name> <res-type>javax.mail.Session </res-type> <res-auth>Container</res-auth> </resource-ref> portion into the web.xml file.
But when trying to running the send mail servlet i got this exception. javax.naming.NameNotFoundException : Name java:comp is not bound in this Context But sending email from the Tomcat example page itself is ok. Have i missed something? Would anyone give any suggestion? Thanks in advance.
l a m b o k s i a n t u r i - i t s t a f f - pt. multi garmenjaya j l . k r a w a n g n o 1 b a n d u n g - i n d o n e s i a
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV> <DIV><FONT face=Arial size=2>i try to copy the servlet for sending email from Tomcat 4.0.4 example and use it in our company technical support web application. </FONT></DIV> <DIV><FONT face=Arial size=2>I have also add the</FONT></DIV> <DIV><FONT face="Courier New" size=2><resource-ref><BR> <res-ref-name>mail/Session</res-ref-name><BR> <res-type>javax.mail.Session </res-type><BR> <res-auth>Container</res-auth><BR> </resource-ref></FONT></DIV> <DIV><FONT face="Courier New" size=2><FONT face=Arial>portion into the</FONT><FONT face="Courier New"> web.xml file.</FONT></FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>But when trying to running the send mail servlet i got this exception.</FONT></DIV> <DIV><FONT face="Courier New" size=2> javax.naming.NameNotFoundException : Name java:comp is not bound in this Context</FONT></DIV> <DIV><FONT face=Arial size=2>But sending email from the Tomcat example page itself is ok. Have i missed something? Would anyone give any suggestion?</FONT></DIV> <DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>l a m b o k s i a n t u r i<BR>- i t s t a f f -<BR>pt. multi garmenjaya<BR>j l . k r a w a n g n o 1<BR>b a n d u n g - i n d o n e s i a</FONT></DIV></BODY></HTML> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST". <p> Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html <p>
|
|
 |