This is not starting the week out very good. I'm trying to duplicate the code in the Tomcat example, SendMail.java. I'm getting the following error:


03-10-20 09:06:46|ERROR|gi.oasis.servlets.FeedbackRequestHandler|Feedback error java.lang.Exception: OpusMail encountered exception: javax.naming.NameNotFoundException: Name mail is not bound in this Context


Here's (part of) the source:
    try {

      Context initCtx = new InitialContext();
      Context envCtx = (Context) initCtx.lookup("java:comp/env");
      Session session = (Session) envCtx.lookup("mail/Session");


What did I miss? I found a


<ResourceParams name="mail/Session">

element in the server.xml file and even added another one, but that didn't improve anything.

Thanks,
Jim.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to