4 Replies Latest reply on Oct 23, 2006 3:10 PM by James Rhodes

    4.05GA javamail problem

    James Rhodes Newbie

      I'm using a base install of 4.05GA and I get the following exception when trying to use javamail. I'm using the default service bound to java:/Mail.

      java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream

      I get the mail session fine, but when I try to create a MimeMessage object like so:
      Message m = new MimeMessage(mailSession);

      //this also fails:
      MimeMessage m = new MimeMessage(mailSession);

      I get the exception. Any ideas?