[jboss-user] [JBoss Seam] - Re: Configuring non-ssl connection to smtp server
erace
do-not-reply at jboss.com
Wed Feb 6 08:14:32 EST 2008
I am using Seam 2.0.1GA and it looks like this might be broken. I have configured mail session like this:
<mail:mail-session host="localhost" port="25"
username="someuser" password="somepass" ssl="false" />
and I get the exception:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
SMTP server accepts both TLS and nonTLS connections.
Any other way I can verify what is wrong?
Some debug logging might help:
4:10:29,260 INFO [MailSession] Creating JavaMail Session (localhost:25)
14:10:29,264 INFO [STDOUT] DEBUG: setDebug: JavaMail version 1.4ea
14:10:29,264 INFO [MailSession] connected to mail server
14:10:29,269 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
14:10:29,269 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
14:10:29,269 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
14:10:29,269 INFO [STDOUT] DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
14:10:29,285 INFO [STDOUT] 220 erace ESMTP Postfix (Ubuntu)
14:10:29,285 INFO [STDOUT] DEBUG SMTP: connected to host "localhost", port: 25
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126978#4126978
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126978
More information about the jboss-user
mailing list