[Dspace-tech] AuthenticationFailedException - followup - javax.mail.MessagingException:

59 views
Skip to first unread message

ilango g

unread,
Aug 25, 2015, 5:30:56 PM8/25/15
to dspac...@lists.sourceforge.net
I am using Dspace 1.5.2, Tomcat 6, Windows XP, Java 7
Previously I was bothered by the  AuthenticationFailedException and now after some effort this is the exception I have:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:297)
- Show quoted text -
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:320)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:181)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:578)
at java.net.Socket.connect(Socket.java:527)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 28 more

What do you think I can infer from this?

I started with dspace in the source, made my changes, did ant update_configs and then ant Dconfig=config/dspace.cfg update.
Then i went over the dspace/config folder found a dspace.cfg.new and an existing dspace.cfg. Copied over the contents of dspace.cfg into dspace.cfg.new,deleted the old one and then rename the dspace.cfg.new to dspace.cfg.

I then did mvn package and ant fresh_install
On Tue, Jul 12, 2011 at 8:59 AM, <dspace-te...@lists.sourceforge.net> wrote:
Send DSpace-tech mailing list submissions to
       dspac...@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.sourceforge.net/lists/listinfo/dspace-tech
or, via email, send a message with subject or body 'help' to
       dspace-te...@lists.sourceforge.net

You can reach the person managing the list at
       dspace-t...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of DSpace-tech digest..."


Today's Topics:

  1. Changing Url from http://localhost to http://mydomain,
     setting gmail as Smtp and New user Registeration (Paul Mulinge)
  2. Re: help............... (Verdonck Christof)
  3. Re: Changing Url from http://localhost to http://mydomain,
     setting gmail as Smtp and New user Registeration (helix84)
  4. AuthenticationFailedException (ilango g)


----------------------------------------------------------------------

Message: 1
Date: Tue, 12 Jul 2011 16:48:00 +0300
From: Paul Mulinge <muling...@gmail.com>
Subject: [Dspace-tech] Changing Url from http://localhost to
       http://mydomain, setting gmail as Smtp and New user Registeration
To: dspac...@lists.sourceforge.net,  "Webshet, Sisay (ILRI)"
       <s.we...@cgiar.org>
Message-ID:
       <CAKxw94517SwWwxhRofLnrKOt...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello ,

Im working on a dspace project.. I have set it up successfully , i have even
created a self signed  SSL certificate thus accessible on
https://localhost:8443/xmlui or jspui...   I need to change the url to
http://mydomain  .. i know it is achievable through several ways i.e NGiNX
proxing and others.... how do i go about it


The mail  function and new user registration seems not to work even after
setting my gmail account as the smtp on dspace.cfg
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Tue, 12 Jul 2011 16:50:55 +0300
From: Verdonck Christof <verdonck...@eurodyn.com>
Subject: Re: [Dspace-tech] help...............
To: Akeredolu Joshua <akered...@gmail.com>,
       dspac...@lists.sourceforge.net
Message-ID: <4E1C513F...@eurodyn.com>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Tue, 12 Jul 2011 15:55:21 +0200
From: helix84 <hel...@centrum.sk>
Subject: Re: [Dspace-tech] Changing Url from http://localhost to
       http://mydomain, setting gmail as Smtp and New user Registeration
To: Paul Mulinge <muling...@gmail.com>
Cc: dspac...@lists.sourceforge.net, "Webshet,        Sisay \(ILRI\)"
       <s.we...@cgiar.org>
Message-ID:
       <CAGdvKqjMvVT5SZ3qBsaXcRGQ...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Tue, Jul 12, 2011 at 15:48, Paul Mulinge <muling...@gmail.com> wrote:
> Hello ,
> Im working on a dspace project.. I have set it up successfully , i have even
> created a self signed ?SSL certificate thus accessible on
> https://localhost:8443/xmlui or jspui... ? I need to change the url to
> http://mydomain ?.. i know it is achievable through several ways i.e NGiNX
> proxing and others.... how do i go about it

Hello Paul,

this is described here:
https://wiki.duraspace.org/display/DSPACE/DspaceOnStandardPorts


Regards,
~~helix84



------------------------------

Message: 4
Date: Tue, 12 Jul 2011 08:59:26 -0500
From: ilango g <ilan...@gmail.com>
Subject: [Dspace-tech] AuthenticationFailedException
To: dspac...@lists.sourceforge.net
Message-ID:
       <CAJkLfnLs4QQbr=gQYaCekK9tCbn8CN5m...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi
I am playing with DSpace 1.5.2. My objective right now is to learn how jsp,
servlets and jstl were used in this  version of DSpace.
I am experiencing a problem when I click on "*New user? Click here to
register. <http://moecyd03ig911y.itservices.sbc.com:8080/jspui/register>"
What happens is as follows. I enter an email address in the corresponding
box, and I am taken to a page that says:" I tried looking at the Dspace
forums for answers to my problem.*Internal System Error

The system has experienced an internal error. "

dspace.log gives me the following stacktrace:

avax.mail.AuthenticationFailedException

at javax.mail.Service.connect(Service.java:306)

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:127)

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:298)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:722)


---------------------

Any clues on what I am doing wrong. I do apologize if I have not been able
to come up with a solution on my own yet.

Thanks in advance for any help.


-ilango
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2

------------------------------

_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


End of DSpace-tech Digest, Vol 63, Issue 21
*******************************************

Mark H. Wood

unread,
Aug 25, 2015, 5:31:12 PM8/25/15
to dspac...@lists.sourceforge.net
On Tue, Jul 12, 2011 at 11:13:13AM -0500, ilango g wrote:
> I am using Dspace 1.5.2, Tomcat 6, Windows XP, Java 7
> Previously I was bothered by the AuthenticationFailedException and now after
> some effort this is the exception I have:
>
> javax.mail.MessagingException: Could not connect to SMTP host:
> smtp.gmail.com, port: 465;
> nested exception is:
> java.net.ConnectException: Connection refused: connect

smtp.gmail.com refused your host's request to connect to port 465.
You would have to ask them why their policy is set that way.

I tried 'telnet smtp.gmail.com 465' and did get a connection, which
then (correctly) dropped when I entered a 'helo' command in plaintext
instead of starting an SSL handshake. So I don't know why they won't
even accept your connection.

Just for completeness: you do have DSpace configured to connect to
the SMTP host via SSL? Not SMTP STARTTLS, but SSL-encapsulated SMTP?

Perhaps you could post the email portion of your DSpace configuration
(omitting any passwords).

--
Mark H. Wood, Lead System Programmer mw...@IUPUI.Edu
Asking whether markets are efficient is like asking whether people are smart.
Reply all
Reply to author
Forward
0 new messages