Bug 46461 - fail graceful on dns changes for connectors/hosts in server.xml
Summary: fail graceful on dns changes for connectors/hosts in server.xml
Status: RESOLVED DUPLICATE of bug 49030
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: unspecified
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-01 07:25 UTC by Ralf Hauser
Modified: 2011-04-12 18:12 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***