You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/12/26 01:50:44 UTC
[jira] Commented: (GERONIMO-4483) Miss spelling of the
SMTPSTransport in the META-INF/javamail.default.providers of
geronimo-javamail_1.4_provider.jar and geronimo-javamail_1.4.jar
[ https://issues.apache.org/jira/browse/GERONIMO-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659215#action_12659215 ]
Willem Jiang commented on GERONIMO-4483:
----------------------------------------
Hi Jarek,
Thanks for looking into it. I just verified the fix by run my test with geronimo-javamail_1.4_provider.jar 1.7-SNAPSHOT.
Every thing is fine :)
Cheers,
Willem
> Miss spelling of the SMTPSTransport in the META-INF/javamail.default.providers of geronimo-javamail_1.4_provider.jar and geronimo-javamail_1.4.jar
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-4483
> URL: https://issues.apache.org/jira/browse/GERONIMO-4483
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: mail
> Reporter: Willem Jiang
> Assignee: Jarek Gawor
>
> I tried to use the geronimo-javamail_1.4.jar to send the mail with stmps protocol
> And I got this error
> {code}
> Caused by: javax.mail.NoSuchProviderException: Unable to load class for provider
> : protocol=smtps; type=javax.mail.Provider$Type@b1fea4; class=org.apache.geronim
> o.javamail.transport.smtp.SMTPTSransport; vendor=Apache Software Foundation;vers
> ion=1.0
> at javax.mail.Session.getService(Session.java:486)
> at javax.mail.Session.getTransport(Session.java:379)
> at javax.mail.Session.getTransport(Session.java:339)
> at org.springframework.mail.javamail.JavaMailSenderImpl.getTransport(Jav
> aMailSenderImpl.java:434)
> at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailS
> enderImpl.java:388)
> ... 19 more
> Caused by: java.lang.ClassNotFoundException: org.apache.geronimo.javamail.transp
> ort.smtp.SMTPTSransport
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at javax.mail.Session.getService(Session.java:482)
> ... 23 more
> {code}
> After digging the source code , I found there is a typo (SMTPTSransport should be SMTPSTransport) in entry of protocol=smtps of the META-INF/javamail.default.providers in geronimo-javamail_1.4_provider.jar and geronimo-javamail_1.4.jar (most versions).
> I think this bug has been existing for almost 2 years. :(
> BTW
> I can send the mail with stmps protocol by fix the typo in my local repository.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.