tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: "Name mail is not bound in this Context" error??
Date Mon, 20 Oct 2003 13:28:43 GMT

Howdy,
Try to list the bindings in your context.  Your server.xml is probably
not set up correctly, so tomcat isn't binding a mail/Session JNDI entry
into your env context.  Post your server.xml.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Jim Lynch [mailto:jwl@sgi.com]
>Sent: Monday, October 20, 2003 9:24 AM
>To: Tomcat Users List
>Subject: "Name mail is not bound in this Context" error??
>
>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message