Bug 46461

Summary: fail graceful on dns changes for connectors/hosts in server.xml
Product: Tomcat 6 Reporter: Ralf Hauser <hauser>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement CC: hauser
Priority: P2    
Version: unspecified   
Target Milestone: default   
Hardware: PC   
OS: All   

Description Ralf Hauser 2009-01-01 07:25:45 UTC
in a server.xml,
there are n > 4 connectors declared on a physical machine with multiple ip addresses.

Due to a dns change, connector 2 and connector 3 end up with the same ip address.

This rightfully causes connector 3 not to get up and running with
ERROR [main] (Catalina.java:553) - Catalina.start:
LifecycleException:  service.getName(): "HTTPSmyApp3";  Protocol handler start failed: java.net.BindException: Address already in use:8443
        at org.apache.catalina.connector.Connector.start(Connector.java:1096)
        at org.apache.catalina.core.StandardService.start(StandardService.java:459)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

However, all subsequent connectors 4..n will not start either - isn't a dns-misconfiguration having too big effect on a mostly correct server.xml config?
Comment 1 Ralf Hauser 2009-01-15 09:11:08 UTC
see also Bug 44558
Comment 2 Mark Thomas 2011-04-12 18:12:06 UTC

*** This bug has been marked as a duplicate of bug 49030 ***