I get java.net.SocketException: Permission denied: connect when launching tomcat server in eclipse

1.3k Views Asked by At

This problem occurs on a in-house customized version of Eclipse Luna with Jdk 1.7.161_1_win and tomcat 7.0.64_4 on the Windows 10 platform.

Background:

tomcat server originally launched fine. Then last May we started having Permission Denied issues on Windows 10, but not on Mac. The issue was fixed on Windows 10 by adding the directives

-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false

For a few weeks this solved the problem, but then the problem resurfaced. We were not able to find a fix and we moved on to starting the app on Mac (High Sierra, same jdk, same tomcat, same directives) . It started on Mac just fine

Later we realized the starting the tomcat sever using the tomcat7 plugin with the goal tomcat7:run-war-only maven plugin works fine with no Permission Denied issues on Windows 10. So it seems there is an issue with eclipse Luna bringing up tomcat 7 on Windows 10 and jdk 7 that causes this problem.

Any body has seen this issue before?

Please note that as I said we tried the

-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false

but it is no longer fixing the problem.

One more piece of information to add is that this problem did not occur on one of our developer windows 10 boxes until a month ago on Windows 10, but as of a month ago he started having the same problem on his Windows 10 box.

0

There are 0 best solutions below