]
Marek Novotny commented on JBSEAM-5117:
---------------------------------------
Does that happen if you have got in your application defined dependency to javax.mail.api
in jboss-deployment-structure.xml or in META-INF/MANIFEST.MF ?
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.0.Final, 2.3.1.CR1, 2.3.1.Final
Environment: Seam deployed in JBOSS 7.1.1.Final
Reporter: Jerome Brette
Priority: Minor
Fix For: 2.3.2.CR1
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: