tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Morales Diego <calvin2...@hotmail.com>
Subject javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
Date Mon, 14 Jul 2008 10:45:56 GMT

Hey all,


I'm having problems with Javamail and I don't know why, the trace of the mistake is this one:



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

19: 	Store store=s.getStore("pop3");
20: 	store.connect("pop.correo.yahoo.es","chikichiki@yahoo.es","bezos11");
21: 	
22: 	Transport.send(message);
23: 	
24: 	store.close();
25: %>


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: Could not connect to SMTP host: localhost, port: 25
	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:90)
	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.MessagingException: Could not connect to SMTP host: localhost, port: 25;
  nested exception is:
	java.net.ConnectException: Connection refused: connect
	com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
	com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
	javax.mail.Service.connect(Service.java:275)
	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: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)


And the file source is this one:







	
		Mail has been sent
	Compruebe bandeja de entrada
	
	
		Mail has been sent
	Pulse aquí para enviar otro
	





Could anyone help me, please?. Thank you all.

Carlos

_________________________________________________________________
Tu mejor plan para el fin de semana y toda la actualidad del mundo del corazón. Entra en
MSN Entretenimiento
http://entretenimiento.es.msn.com/
---------------------------------------------------------------------
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