Which version/build of the glassfish were you using? You might be
hitting this bug which was addressed in earlier builds:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6462350
Thanks,
- Hong
glassfish_at_javadesktop.org wrote:
>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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>