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: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com