Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3372

Replace Sun javamail (mail.jar) with a source-code friendly licensed implementation

    XMLWordPrintable

Details

    • Compatibility/Configuration

    Description

      GNU JavaMail is a free implementation of the JavaMail API specification, version 1.3.

      We want to use it as a replacement for Sun's mail.jar

      The sources can be downloaded from here:
      http://www.gnu.org/software/classpathx/javamail/javamail.html

      Issues with replacement by classpathx-mail:

      jbossws must be patched to use gnu-handlers instead of sun-handlers
      +//import com.sun.mail.handlers.multipart_mixed;
      +import gnu.mail.handler.MultipartMixed;
      +//import com.sun.mail.handlers.text_html;
      +import gnu.mail.handler.TextHtml;
      +//import com.sun.mail.handlers.text_plain;
      +import gnu.mail.handler.TextPlain;

      testsuite/src/main/org/jboss/test/classloader/resource/ResourceTest.java
      must be patched, because it refers to javamail.default.address.map and javamail.default.providers while in classpathx-mail these are named javamail.address.map and javamail.providers in classpathx-mail This change isn't essential to javamail; those files (+javamail.jar) were chosen because they were supposed to be always there. The real purpose of ResouceTest.java is to check access to resouces, so any adequate resources could be the test objects. But the resource test is executed very often and in different contexts. Therefore the adjustment is important for testsuite.

      Attachments

        Issue Links

          Activity

            People

              dandread1@redhat.com Dimitrios Andreadis
              dandread1@redhat.com Dimitrios Andreadis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: