Bug 44017

Summary: if an inesting host is mentioned in server.xml, warn!
Product: Tomcat 6 Reporter: Jan Bielik <bielik>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: hauser
Priority: P2    
Version: 6.0.14   
Target Milestone: default   
Hardware: Other   
OS: other   

Description Jan Bielik 2007-12-04 00:49:52 UTC
and do not just silently use localhost:

I had put a wrong LAN IP 192.168.1.39 in the server.xml's
<Host name="192.168.1.39"
element.

Tomcat did start, but unsurprisingly, my browser couldn't connect to it.

Please add a warning to the console (catalina.out) output!
Only by coincidence I noticed that the server was listening on localhost
Comment 1 Mark Thomas 2007-12-23 15:46:16 UTC
You are confusing the address attribute of the connector and the name attribute
of the host.

I don't see what can easily be done to detect this sort of configuration error.
If you have a suggestion for a code change feel free to re-open this report and
provide a patch.
Comment 2 Ralf Hauser 2009-07-08 02:21:16 UTC
see also bug 47495