tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eurotrans-Verlag" <>
Subject RE: Tomcat 5.5.28 on 64 bit windows server 2008.
Date Sun, 21 Aug 2011 12:37:05 GMT

> -----Original Message-----
> From: Venkata Surapaneni []
> Sent: Sunday, August 21, 2011 12:26 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 5.5.28 on 64 bit windows server 2008.
> And on top of this all the log look clean. Nothing looks suspicious.
> =======================================================================
> =============================================
> As suggested I have installed the latest version(5.5.33) of Tomcat
> 5.5.x. After installing I have typed in the browser 'http://localhost'
> to check if the tomcat is installed properly. The home page is
> displayed indicating that the installation is fine. Then I typed in ip
> address of the machine '' and page not found page is
> displayed. This is exactly the same problem why we have downgraded the
> version. There are no changes or customizations made  to the
> installation. It was default installation and the only change is to use
> port 80 instead of 8080.
> (...)

I see the same behavior when installing Tomcat 5.5.33 (Core) on Windows 7 32
bit. Without changing anything in the config nor other Tomcat files, after
starting Tomcat, http://localhost:8080/ works, whereas (the LAN IP) does not (Connecting to that port
fails). Note that also does not work.

>From looking at netstat, it looks like Tomcat is only binding to the IPv6
addresses, but not to IPv4 addresses, so can't work.
Netstat's output for the Tomcat process ("ABHÖREN" means "LISTENING"):
  TCP    [::]:8009              [::]:0                 ABHÖREN         3028
  TCP    [::]:8080              [::]:0                 ABHÖREN         3028

The default installation of Tomcat 5.5.33 uses Tomcat Native 1.1.20. After I
remove/rename the tcnative-1.dll in Tomcat's bin directory and restarting
Tomcat, now Tomcat binds also to IPv4 addresses and
(and the variant with the LAN IP) works.
  TCP               ABH™REN         3596
  TCP               ABH™REN         3596
  TCP    [::]:8009              [::]:0                 ABH™REN         3596
  TCP    [::]:8080              [::]:0                 ABH™REN         3596

With Tomcat 7.0.20 (using TC Native) and without changing anything in the
config, it seems to only bind to the IPv4 addresses, but no IPv6.
  TCP               ABH™REN         2864
  TCP               ABH™REN         2864

When using Tomcat 7.0.20 (without Native), it binds to IPv4 as well as IPv6
(like Tomcat 5.5.33 without Native).

However I could get TC 5.5.33 to bind on the IPv4 address, by adding the
"address" attribute to the <Connector> element in server.xml. Maybe you
could try this and see if it solves the problem?

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
               address="" />

However it seems a bit strange that TC 5.5.33 is only binding to the IPv6
addresses by default/using Native.


Konstantin Preißer

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message