tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodolfo Piedrabuena <>
Subject "Permission denied": connect, when running Tomcat 7 as a windows service
Date Wed, 23 Oct 2013 02:59:25 GMT
Hi there,

I'm receiving the following exception: "Permission denied": connect

when instantiating a Socket from a servlet:

final Socket smtpSocket = new Socket(mailTransportHost, mailTransportPort);

This application was running as a service under Windows Server 3003 R2
32-bits. After migrating it to Windows Server 2008 R2 64-bit, I cannot
longer establish connection with the smtp server.

This only happen when running Tomcat as a service.
Running as a standalone (starting it up using startup.bat) works fine. No
exception instantiating Socket, emails are sent.


   - Windows Server 2008 R2 64-bit
   - Tomcat 7.0.39
   - jdk1.6.0_33-x64

Any help would be much appreciated

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message