I've been trying to diagnose this problem for a while and just haven't made
any progress.  I would appreciate any suggestions you might have to offer.
I'm attempting to get smtp to work on a fresh install of dspace.  SMTP works
on other applications in the website so I know that this is not a problem.
When I attempt an smtp transaction through dspace i get an internal server
error.  I posted the log entry below.  I've done a little research about the
error and everything I read says its because the connection is lacking an
ssl certificate, but I do not have ssl enabled for my internal smtp server.
I've also posted an excerpt from my dspace.cfg file.  Any suggestions would
be greatly appreciated.

##### Email settings ######
>
> # SMTP mail server
> mail.server=mywebsite.com
>
> # SMTP mail server authentication username and password (if required)
> mail.server.username = administra...@mywebsite.com
> mail.server.password = mypassword
>
> # SMTP mail server alternate port (defaults to 25)
> mail.server.port = 25
>
> # From address for mail
> mail.from.address = nore...@mywebsite.com
>
> # Currently limited to one recipient!
> feedback.recipient = administra...@mywebsite.com
>
> # General site administration (Webmaster) e-mail
> mail.admin = administra...@mywebsite.com
>
> # Recipient for server errors and alerts
> # alert.recipient = email-address-here
>
> # Recipient for new user registration emails
> # registration.notify = email-address-here
>
> # Set the default mail character set. This may be over ridden by providing
> a line
> # inside the email template "charset: <encoding>", otherwise this default
> is used.
> #mail.charset = UTF8
>
>
> # Default language for metadata values
> default.language = en_US
>
>
2009-12-18 11:30:14,049 INFO  org.dspace.app.webui.servlet.
>
> RegisterServlet @
> anonymous:session_id=C7C2DD12D0211AC331BD15B466C91CAD:ip_addr=69.29.72.149:
> sendtoken_register:email=bryceray1...@gmail.com
> 2009-12-18 11:30:14,123 INFO  org.dspace.app.webui.servlet.RegisterServlet
> @
> anonymous:session_id=C7C2DD12D0211AC331BD15B466C91CAD:ip_addr=69.29.72.149:
> error_emailing:email=bryceray1...@gmail.com
> javax.mail.MessagingException: Exception reading response;
>   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
>         at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
>         at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
>         at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
>         at javax.mail.Service.connect(Service.java:297)
>         at javax.mail.Service.connect(Service.java:156)
>         at javax.mail.Service.connect(Service.java:105)
>         at javax.mail.Transport.send0(Transport.java:168)
>         at javax.mail.Transport.send(Transport.java:98)
>         at org.dspace.core.Email.send(Email.java:362)
>         at
> org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:296)
>         at
> org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:256)
>         at
> org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:101)
>         at
> org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:287)
>         at
> org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:202)
>         at
> org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147)
>         at
> org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: 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
>         at
> com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
>         at
> com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
>         at
> com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
>         at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035)
>         at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
>         at
> com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
>         at
> com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)
>         at
> com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
>         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)
>         at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
>         ... 29 more
> Caused by: sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid certification path to requested target
>         at
> sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285)
>         at
> sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)
>         at sun.security.validator.Validator.validate(Validator.java:218)
>         at
> com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
>         at
> com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
>         at
> com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
>         at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1014)
>         ... 41 more
> Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target
>         at
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
>         at
> java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
>         at
> sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)
>         ... 47 more
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to