geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Glick (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6167) Mistyped service provider name: SMTPTSransport
Date Tue, 20 Sep 2011 16:38:09 GMT
Mistyped service provider name: SMTPTSransport
----------------------------------------------

                 Key: GERONIMO-6167
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6167
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
    Affects Versions: 1.x
         Environment: Linux, JDK 6
            Reporter: Jesse Glick
            Priority: Critical


When I try to use the Ant {{<mail>}} task with {{geronimo-javamail-1.4-mail-1.2.jar}}
(and {{geronimo-activation-1.1-spec-1.0.jar}} and {{geronimo-activation-2.0.2.jar}}), I get
a stack trace:

{code}
Problem while sending mime mail:
	at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:284)
	at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:577)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: javax.mail.NoSuchProviderException: Unable to load class for provider: protocol=smtps;
type=javax.mail.Provider$Type@177b101; class=org.apache.geronimo.javamail.transport.smtp.SMTPTSransport;
vendor=Apache Software Foundation;version=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.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:256)
	... 16 more
Caused by: java.lang.ClassNotFoundException: org.apache.geronimo.javamail.transport.smtp.SMTPTSransport
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at org.apache.tools.ant.module.bridge.AntBridge$MainClassLoader.findClass(AntBridge.java:646)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at javax.mail.Session.getService(Session.java:482)
	... 19 more
{code}

It seems that {[META-INF/javamail.default.providers}} lists {{SMTPTSransport}} but it should
be {{SMTPSTransport}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message