Summary: | socket bindexception in tomcat 6 on pure ipv6 solaris | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Mallik Soupati <mallixhere> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.0.13 | ||
Target Milestone: | default | ||
Hardware: | Other | ||
OS: | SunOS |
Description
Mallik Soupati
2008-02-28 06:24:36 UTC
I happened to see that there is no IPv6 code at these lines of code. IPv6 loop-back address is also needed to be tried. file : StandardServer.java lines : 370 to 380 ServerSocket serverSocket = null; try { serverSocket = new ServerSocket(port, 1, InetAddress.getByName("127.0.0.1")); } catch (IOException e) { log.error("StandardServer.await: create[" + port + "]: ", e); System.exit(1); } If it is the loop-back address we are trying to bind to, "InetAddress.getByName(null);" in ServerSocket constructor will do it for us in protocol independent way. |