[seam-issues] [JBoss JIRA] (JBSEAM-5117) javamail.providers in jboss-seam.jar causes javax.mail.NoSuchProviderException in JBOSS 7.1.1.Final

Jerome Brette (JIRA) jira-events at lists.jboss.org
Sun Jun 23 23:36:20 EDT 2013


Jerome Brette created JBSEAM-5117:
-------------------------------------

             Summary: javamail.providers in jboss-seam.jar causes javax.mail.NoSuchProviderException in JBOSS 7.1.1.Final
                 Key: JBSEAM-5117
                 URL: https://issues.jboss.org/browse/JBSEAM-5117
             Project: Seam 2
          Issue Type: Bug
          Components: Core, Mail
    Affects Versions: 2.3.1.CR1, 2.3.0.Final
         Environment: Seam deployed in JBOSS 7.1.1.Final
            Reporter: Jerome Brette
            Assignee: Pete Muir
            Priority: Minor


In JBOSS 7.1.1, in the org/jboss/as/mail module defiinition , the javax.mail.api dependency also loads the content of the META-INF.

Since the jboss-seam.jar/META-INF/javamail.providers only specificies the mock protocotol, this triggers the following expection:

Caused by: javax.mail.NoSuchProviderException: No provider for smtp
        at javax.mail.Session.getProvider(Session.java:464) [mail-1.4.4.jar:1.4.4]
        at javax.mail.Session.getTransport(Session.java:659) [mail-1.4.4.jar:1.4.4]
        at javax.mail.Session.getTransport(Session.java:640) [mail-1.4.4.jar:1.4.4]
        at javax.mail.Session.getTransport(Session.java:626) [mail-1.4.4.jar:1.4.4]
        at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:166) [jboss-seam-mail-2.3.0.Final.jar:2.3.0.Final]


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list