Hello,



I did it and now I have this one:


org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22

19:     message.setText("Saludo de JavaMail");
20:
21:     Store store=s.getStore("pop3");
22:     store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11");
23:     Transport.send(message);
24:
25:     store.close();


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: [IN-USE] maildrop busy.
        
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:91)
        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: [IN-USE] maildrop busy.
        com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146)
        javax.mail.Service.connect(Service.java:275)
        javax.mail.Service.connect(Service.java:156)
        org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:67)
        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)



> Date: Thu, 17 Jul 2008 12:47:40 +0300
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Re: javax.servlet.ServletException: Could not connect to SMTP host: 
> localhost, port: 25
>
> try this ..
> props.put("mail.smtp.host","smtp.correo.yahoo.es");
> props.put("mail.smtp.port","25");
> props.put("mail.smtp.auth", "true");
>
>
> On Thu, Jul 17, 2008 at 12:41 PM, Carlos Morales Diego <
> [EMAIL PROTECTED]> wrote:
>
>>
>>
>> Hello Jonas,
>>
>>
>> I still have the same mistake, so I don't know, this is my code
>>
>> Properties props=new Properties();
>> props.put("mail.smtp.host","smtp.correo.yahoo.es");
>> props.put("mail.smtp.port","25");
>> props.put("mail.smtp.auth", "true");
>> Session s=Session.getInstance(props);
>>
>>
>> MimeMessage message=new MimeMessage(s);
>>
>> InternetAddress from=new InternetAddress("[EMAIL PROTECTED]");
>> message.setFrom(from);
>> InternetAddress to=new InternetAddress("[EMAIL PROTECTED]");
>> 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","[EMAIL PROTECTED]
>> ","bezos11");
>> Transport.send(message);
>>
>> store.close();
>>
>> And I don't know. Any advice?
>>
>> Thanks so much
>>
>>> Subject: RE: javax.servlet.ServletException: Could not connect to SMTP
>> host: localhost, port: 25
>>> Date: Mon, 14 Jul 2008 14:14:40 +0200
>>> From: [EMAIL PROTECTED]
>>> To: users@tomcat.apache.org
>>>
>>> Hello,
>>>
>>> It looks to me as if you didn't configure any SMTP server. You need to
>>> do something like:
>>> Properties smtpProperties = new Properties();
>>> smtpProperties.put("mail.smtp.host", "smtp.example.com");
>>> smtpProperties.put("mail.smtp.auth", "true");
>>>
>>> // create the mime message
>>>
>>> Session session = Session.getDefaultInstance(smtpProperties);
>>> Transport transport = session.getTransport("smtp");
>>> transport.connect(smtpHost, smtpUser, smtpPasswd);
>>> mimeMessage.saveChanges();
>>> transport.sendMessage(mimeMessage, mimeMessage.getAllRecipients());
>>> transport.close();
>>>
>>> I don't know JavaMail that well, so I cannot tell you how it's supposed
>>> to work with the static Transport::send() method, but you can probably
>>> set the SMTP server in a property file.
>>>
>>>> org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22
>>>>
>>>> 19: Store store=s.getStore("pop3");
>>>> 20:
>>> store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11");
>>>> 21:
>>>> 22: Transport.send(message);
>>>> 23:
>>>> 24: store.close();
>>>> 25: %>
>>>
>>> I don't quite see what the store does in your code. Is this some sort of
>>> pop-before-smtp authentification?
>>>
>>> Greetings,
>>> Jonas
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>> _________________________________________________________________
>> Herramientas para combatir la crisis. MSN Dinero
>> http://dinero.es.msn.com/
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Regards, Youssef

_________________________________________________________________
Herramientas para combatir la crisis. MSN Dinero
http://dinero.es.msn.com/
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to