2

I needed to change the port of Tomcat from 8080 to 80 so that I can execute my web app as http://localhost. I followed already answered this question of stackoverflow.

As I started tomcat 7, it generates the following Exception:

SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-apr-80"] java.lang.Exception: Socket bind failed: [730013] An attempt was made to access a socket in a way forbidden by its access permissions.

This is the problem. How to handle this exception in tomcat 7 in windows 7?

Community
  • 1
  • 1
islamuddin
  • 185
  • 5
  • 17
  • Is Windows firewall configured to allow inbound traffic to port 80? Seems to me I remember that it blocks that port by default. – JJF Oct 25 '15 at 17:21
  • Yes, Windows firewall is configured to allow inbound traffic to port 80. I had already created that rule. – islamuddin Oct 28 '15 at 05:28

2 Answers2

1

It seems the port 80 is already used by some other service. If you want to run your app in port 80 then shutdown already port 80 service and try again.

1

Ports < 1024 usually require greater (admin) privileges; I am betting you're running as a normal/limited user.

Mark Sholund
  • 1,273
  • 2
  • 18
  • 32