java.lang.ClassCastException: com.sun.enterprise.deployment.MailConfiguration cannot be cast to javax.mail.Session

Oracle Community | frenchdrip | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JNDI resource ref for MBean ?

    Oracle Community | 9 years ago | frenchdrip
    java.lang.ClassCastException: com.sun.enterprise.deployment.MailConfiguration cannot be cast to javax.mail.Session

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.enterprise.deployment.MailConfiguration cannot be cast to javax.mail.Session

      at com.ilmn.dam.mbean.Mailer.send()
    2. com.ilmn.dam
      Mailer.send
      1. com.ilmn.dam.mbean.Mailer.send(Mailer.java:59)
      1 frame