You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pat O'Flaherty <po...@speakeasy.net> on 2003/04/07 21:11:24 UTC

Tomcat 4.0.3 jsp socket timeout on 3rd connection

I have recently installed Tomcat 4.0.3 on Win2000 as standalone 
server. The only configuration change I made to the default config was in the
server.xml file to point to my ISP email server rather than localhost (see 
change below):

 <Resource name="mail/Session" auth="Container"
                     type="javax.mail.Session"/>
           <ResourceParams name="mail/Session">
             <parameter>
               <name>mail.smtp.host</name>
               <value>mail.speakeasy.net</value>
             </parameter>
           </ResourceParams>

 I compiled the SendMailServlet example (I found no class file).  I can run
 the example successfully and send 2 email messages b4 on the 3rd try 
 I receive a the following error:

 ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending 
failed;
 nested exception is: javax.mail.MessagingException: Could not connect 
to
 SMTP host: mail.speakeasy.net, port: 25; nested exception is:
 java.net.ConnectException: Operation timed out: connect
 javax.mail.SendFailedException: Sending failed;
   nested exception is:
 javax.mail.MessagingException: Could not connect to SMTP host:
 mail.speakeasy.net, port: 25;
   nested exception is:
 java.net.ConnectException: Operation timed out: connect

 This alway happens on the 3rd attempt.  Similar problem occurs in a 
custom servlet when creating a socket.  Socket connection works fine for 1st 
2 connections but 3rd alway results in connection timeout error.
Tomcat newbee, I know I have something configured incorrectly, but 
what?

Any help appreciated.