This discussion is archived
6 Replies Latest reply: May 23, 2012 11:34 AM by 916099 RSS

Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuration--

916099 Newbie
Currently Being Moderated
HI,

I have liferay application used to develop by using spring and eclipse. our portal is working fine. And i can send email noticfications while some one create a new email ID with gmail,hotmail. But with our exchange error it wont work . I have acuried the right smtp outgoing setting(bcz thats only wht we really care right now) those settings are:


SMTP Port = 587 (SSL encrypted)

Incoming ports:
POP3 = 995 (SSL encrypted)
IMAP4 = 993 (SSL encrypted)

Authentication:
Basic - This is clear text authentication. Must be secured with TLS to prevent third parties from accessing
NTLM - NTLM is only available if accessing over RPC over http (also called outlook anywhere)

TLS encryption enabled = All clients connecting are REQUIRED to use TLS encryption in order to authenticate to the exchange server.
STARTTLS = enabled.


But tomcat displays following error when i create an account:


unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCe
thBuilder.java:174)
at java.secur





And some one sugggested below to me i am not sure if that is wht i needed to do?

In the life ray thread have a look at below conversation:

I just try this in the latest build of liferay 6.1.1, I think that it's an issue with the certificate. In my case the certificate its not registered with certificate provider, that maybe my problem

If this is true then they suggest:

Try setting JSSE truststore.

http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#javaHome





Full Error:

**at java.lang.Thread.run(Thread.java:619)**
**:09:07,699 ERROR [MVCPortlet:361] null is not a valid include**
**:10:28,268 ERROR [MailEngine:507] Exception reading response**
**:10:28,269 ERROR [MailEngine:154] sun.security.provider.certpath.SunCertPath**
**derException: unable to find valid certification path to requested target**
**at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCe**
**thBuilder.java:174)**
**at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)**
**at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:289**
**at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.j**
**200)**
**at sun.security.validator.Validator.validate(Validator.java:218)**
**at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509Trus**
**agerImpl.java:126)**
**at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTruste**
**09TrustManagerImpl.java:209)**
**at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTruste**
**09TrustManagerImpl.java:249)**
**at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Cli**
**andshaker.java:1053)**
**at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Client**
**shaker.java:128)**
**at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java**
**)**
**at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.j**
**465)**
**at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl**
**a:884)**
**at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(**
**ocketImpl.java:1120)**
**at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocket**
**.java:744)**
**at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.jav**
**)**
**at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)**
**at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)**
**at java.io.BufferedInputStream.read(BufferedInputStream.java:237)**
**at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)**

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points