Weblogic smtp connection timeout!

Hi, when I deployed my program in the weblogic server, everything is ok, but after somedays it can not send mail! I believe my code is available, because I can send mail in my tomcat server in the same machine.

I wonder if the conflict between weblogic.jar and mail.jar can lead this happen.

Can anyone help me or give me any clue?

Thanks a lot!

The following is exception:

javax.mail.SendFailedException: Sending failed;

nested exception is:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.bea.com, port: 25;

nested exception is:

java.net.ConnectException: Connection timed out

at javax.mail.Transport.send0(Transport.java:219)

at javax.mail.Transport.send(Transport.java:81)

at com.bea.tuxedo.crinfo.businesslogic.Sev1Record.Sev1SubmitHandler.sendMail(Sev1SubmitHandler.java:281)

at com.bea.tuxedo.crinfo.businesslogic.Sev1Record.Sev1SubmitHandler.copyform(Sev1SubmitHandler.java:149)

at com.bea.tuxedo.crinfo.businesslogic.Sev1Record.Sev1SubmitHandler.doRequest(Sev1SubmitHandler.java:53)

at com.bea.tuxedo.crinfo.action.Sev1Record.UpdateSev1CRAction.execute(UpdateSev1CRAction.java:21)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

Message was edited by:

qchang

[2655 byte] By [qchanga] at [2007-11-27 5:20:53]
# 1

Just to be clear, you work for BEA, you're using WebLogic, you're trying

to send mail using the smtp.bea.com mail server, and you're asking for

help here? :-)

Assuming the server isn't actually down, and connections aren't timing out

when connecting from other applications or other machines, I would look

into whether there's a firewall that might be preventing you from connecting,

or possibly the mail server has decided that you've connected too often or

have too many open connections and so won't let you connect again.

bshannona at 2007-7-12 11:45:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
This problem has been solved!Just restart Weblogic Server.Because there are many applications in our server so it's not easy way to apply restart whole weblogic server....Thanks a lot.
qchanga at 2007-7-12 11:45:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...