Glassfisch JavaMail会话

时间:2017-08-21 14:08:53

标签: glassfish javamail

我有这个发送电子邮件的小ejb bean,我在Glassfish上使用JavaMail Session。在Java Mail Session下的Admin Glassfish设置中,我使用Google凭据发送/接收电子邮件。使用Google帐户,我可以接收和发送电子邮件,但是当我尝试使用我的专用服务器的个人电子邮件时,例如my@dommainname.com,那么Glassfish不会发送/接收任何电子邮件。

我怀疑在JavaMail Session下我没有在Glassfish上填写正确的信息。在选项卡"高级"在JavaMail Session下,有4个字段需要一些关于我的邮件服务器的信息:

Store Protocol: imap
Store Protocol Class:com.sun.mail.imap.IMAPStore
Transport Protocol: smtp
Transport Protocol Class:com.sun.mail.smtp.SMTPTransport

为什么当我使用谷歌Gmail帐户时它完美无缺,但是当我使用自己的域名电子邮件时,它不会发送任何电子邮件或接收?应用程序挂起加载,我收到此错误:

type Exception report

messageInternal Server Error

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Could not convert socket to TLS
root cause

javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
    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
root cause

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
root cause

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
root cause

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

0 个答案:

没有答案