users@glassfish.java.net

com.sun.enterprise.deployment.MailConfiguration ???

From: <glassfish_at_javadesktop.org>
Date: Thu, 02 Aug 2007 21:08:28 PDT

Hey,

I am getting the error;

[b]java.lang.ClassCastException: com.sun.enterprise.deployment.MailConfiguration[/b]

when I try to lookup a javamail resource using the following code:

InitialContext ic = new InitialContext();
        String snName = "JMAIL";
        [b]javax.mail.Session session = (javax.mail.Session)ic.lookup(snName);[/b]

[b]Which download[/b] is the jar file containing the "MailConfiguration" class a part of?

thanks in advance
[Message sent by forum member 'drinkbythebeach' (drinkbythebeach)]

http://forums.java.net/jive/thread.jspa?messageID=229274