Tomcat startup fails due to 'java.net.SocketException Invalid argument' on Mac OS X

前端 未结 4 1607
闹比i
闹比i 2020-12-13 19:15

We have an application that runs on Tomcat 6 (6.0.35.0 to be precise), and most of our engineers on Mac OS are having problems starting Tomcat due to the socketAccept call i

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 19:34

    I've been battling with this problem in another context. Solution(s) combined from different sources look like next:

    • Update /etc/hosts with next overrides:
      • ::1 EWD-MacBook-Pro.local
      • 127.0.0.1 EWD-MacBook-Pro.local localhost

    (EWD-MacBook-Pro.local is my machine name)

    and

    • Set system properties:
      • java.net.preferIPv4Stack => true
      • java.net.preferIPv6Addresses => false

    Good luck!

提交回复
热议问题