You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by ke...@ravish.in on 2007/03/22 13:26:45 UTC
Fwd: Help, Apache Geronimo
hello
sir,
we have application which is deployed on Apache Geronimo 1.1,
in this application one of page has function which send mail,
this page is done using sun mail.jar's API,
this file works fine on tomcat but when it is deployed on
apache geronimo it give me follwoing error,
"javax.mail.SendFailedException: Send failure
(javax.mail.MessagingException: Could not connect to SMTP host: localhost,
port: 25 (java.net.ConnectException: Connection refused))"
can u help me in any way
regard's
ketan d.gote
Re: Fwd: Help, Apache Geronimo
Posted by Rick McGuire <ri...@gmail.com>.
ketan.gote@ravish.in wrote:
> hello
> sir,
>
> we have application which is deployed on Apache Geronimo 1.1,
> in this application one of page has function which send mail,
> this page is done using sun mail.jar's API,
> this file works fine on tomcat but when it is deployed on
> apache geronimo it give me follwoing error,
>
> "javax.mail.SendFailedException: Send failure
> (javax.mail.MessagingException: Could not connect to SMTP host: localhost,
> port: 25 (java.net.ConnectException: Connection refused))"
>
> can u help me in any way
>
There is a bug in the 1.1.1 Transport.send() code that results from some
bad processing of the mail.smtp.host property. If you set the session
property "mail.host" to your smtp host name, you can get around the
problem.
Also, that particular exception only occurs if you are mixing the
Geronimo javamail API with the Sun SMTPTransport implementation. You
should make sure you remove the Sun mail.jar from your application
classpath. In the simple testing I've done, that combination will work
once you get by the "mail.stmp.host" problem, but it has not undergone
any extensive testing and the ability to fix and/or diagnose problems is
pretty limited.
Rick
> regard's
> ketan d.gote
>
>
>
>
>