Hi Friends,
I am getting the "Lookup Error Name comp/env/mail not found in context "java:"., Failed to lookup the configuration path" error in the
servlet.
The lines of code is
try{
Context initCtx = new InitialContext();
mailHost = (
String) initCtx.lookup("java:comp/env/mail/mail_02");
} catch (NamingException e) {
AtlasLogger.info(
"DMUMail: Failed to lookup the configuration path");
AtlasLogger.error("DMUMail: Lookup Error " + e.getMessage());
}
Please advise me.Thanks.