DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3885>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3885 server.xml ResourceParam does not match envCtx.lookup Summary: server.xml ResourceParam does not match envCtx.lookup Product: Tomcat 4 Version: 4.0 Final Platform: All URL: http://localhost:8080/examples/jsp/mail/sendmail.jsp OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Webapps AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In the example servlet SendMailServlet.java the line 63 entry " Session session = (Session) envCtx.lookup("mail/Session"); " does a JNDI lookup for " Resource name="mail/Session" " But... When you "change the value for the mail.smtp.host parameter to the name of a host that provides SMTP service for your network. " The server.xml file names the mail/Session resource parameter on line 265: " <ResourceParams name="mail/session"> " with a lowercase "s" at the beginning of "session". This should be an UPPERCASE "S" : <ResourceParams name="mail/Session">. Otherwise, the servlet throws an error stating that it cannot connect to port 25 on localhost even when you have updated the value to the correct mail server hostname.