tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: javax.mail.AuthenticationFailedException
Date Tue, 22 Jul 2008 19:41:05 GMT
>
> javax.mail.AuthenticationFailedException
> 	...
> 	javax.mail.Transport.send(Transport.java:98)
> 	org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71)


That's not what I'm seeing ...  the stack trace clearly shows the 
problem to be in your call to Transport.send(), not the pop connect line.

--David

Carlos Morales Diego wrote:
> The line which you say I have it. It's this one
>  
> store.connect("pop.correo.yahoo.es","chikichiki","bezos11"); where chikichiki is the
user name and bezos11 is the password.
>  
>   
>> Date: Tue, 22 Jul 2008 14:38:19 -0400> From: dns4@cornell.edu> To: users@tomcat.apache.org>
Subject: Re: javax.mail.AuthenticationFailedException> > I don't use Yahoo! email so
take this with a grain of salt, but this > error looks pretty clear cut to me. Yahoo's
SMTP server wants username > and password, but you aren't sending any.> > --David>
> > Carlos Morales Diego wrote:> > Hello all,> >> > Could anyone help
me, please?, I've been trying to solve this mistake but it's impossible and I don't know what
I can do.> >> > This is the mistake:> >> > org.apache.jasper.JasperException:
Exception in JSP: /sendmail.jsp:25> >> > 22: > > 23: Store store=s.getStore("pop3");>
> 24: store.connect("pop.correo.yahoo.es","chikichiki@yahoo.es","bezos11");> > 25:
Transport.send(message);> > 26: > > 27: store.close();> > 28: %>>
>> >> > Stacktrace:> > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)> >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> >> >> >
causa raíz > >> > javax.servlet.ServletException> > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)>
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)>
> org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:94)> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> >> >> >
causa raíz > >> > javax.mail.AuthenticationFailedException> > javax.mail.Service.connect(Service.java:306)>
> javax.mail.Service.connect(Service.java:156)> > javax.mail.Service.connect(Service.java:105)>
> javax.mail.Transport.send0(Transport.java:168)> > javax.mail.Transport.send(Transport.java:98)>
> org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:71)> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> >> >> >
And this the source:> >> > Properties props=new Properties();> > props.put("mail.smtp.host","smtp.correo.yahoo.es");>
> props.put("mail.smtp.port","25");> > props.put("mail.smtps.port", "465"); >
> props.put("mail.smtp.auth", "true");> > Session s=Session.getInstance(props);>
> s.setDebug(true);> > > > > > MimeMessage message=new MimeMessage(s);>
> > > InternetAddress from=new InternetAddress("chikichiki@yahoo.es");> > message.setFrom(from);>
> InternetAddress to=new InternetAddress("chikichiki@yahoo.es");> > message.addRecipient(Message.RecipientType.TO,to);>
> > > message.setSubject("Prueba de JavaMail");> > message.setText("Saludo
de JavaMail");> > > > Store store=s.getStore("pop3");> > store.connect("pop.correo.yahoo.es","chikichiki@yahoo.es","bezos11");>
> Transport.send(message);> > > > store.close();> >> >> >
Where is my mistake?, Thanks a lot.> >> > _________________________________________________________________>
> Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes
en MSN Vídeo> > http://video.msn.com/?mkt=es-es> > --------------------------------------------------------------------->
> To start a new topic, e-mail: users@tomcat.apache.org> > To unsubscribe, e-mail:
users-unsubscribe@tomcat.apache.org> > For additional commands, e-mail: users-help@tomcat.apache.org>
>> > > > > --------------------------------------------------------------------->
To start a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org>
For additional commands, e-mail: users-help@tomcat.apache.org> 
>>     
> _________________________________________________________________
> Hazte tu propia televisión a la carta. Música, noticias, estrenos, cine, humor y viajes
en MSN Vídeo
> http://video.msn.com/?mkt=es-es
>   



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message