David-

It looks like something strange is happening with your configuration.  I am
not familiar with the example that you are talking about, but if you look at
the exception, it looks like it is trying to connect to port 25 (smtp) of
localhost, and not your verizon SMTP server.  Localhost normally resolves to
your own machine (your XP box in this case), and I doubt you have an SMTP
server running there, and thus the connection failure.

Perhaps there is another location you must use to specify the verizon
server?  On a related note, be prepared to potentially have problems once
you have the example pointed to the right server.  Not all servers allow
"ad-hoc" connections to their SMTP server.  If you find yourself in this
boat (it pointing to verizon but still getting connection failures) let me
know and I can try to step you through debugging SMTP connectivity errors.


Parker Burden
Senior Systems Engineer JC4I/INRI/DMS
757-249-1234
[EMAIL PROTECTED]
 

-----Original Message-----
From: David Diskin [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 28, 2002 4:32 PM
To: [EMAIL PROTECTED]
Subject: Newbie: Java Mail Problem

I've just set up Tomcat  4.1.18 on my Windows XP Home  PC.   I installed 
it as a service.  I have no problem connecting to the Tomcat main web 
page.  I reconfigured conf/server.xml and changed to value of 
mail.smtp.host to "smtp.verizon.net", my  isp mail server.  However, 
when I go to run the jsp send mail example, I get the following 
exception.  Can anyone help on  this?
======================================================
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; 
nested exception is: javax.mail.MessagingException: Could not connect to 
SMTP host: localhost, port: 25; nested exception is: 
java.net.ConnectException: Connection refused: connect

javax.mail.SendFailedException: Sending failed;
  nested exception is: 
        javax.mail.MessagingException: Could not connect to SMTP host:
localhost, port: 25;
  nested exception is: 
        java.net.ConnectException: Connection refused: connect
        at javax.mail.Transport.send0(Transport.java:219)
        at javax.mail.Transport.send(Transport.java:81)
        at SendMailServlet.doPost(SendMailServlet.java:75)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
        at java.lang.Thread.run(Thread.java:536)



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to