Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
I've installed rpm -qa | grep -i ^tomcat tomcat-lib-7.0.27-7.1.noarch tomcat-docs-webapp-7.0.27-7.1.noarch tomcat-javadoc-7.0.27-7.1.noarch tomcat-webapps-7.0.27-7.1.noarch

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Tony Anecito
...@operamail.com k9...@operamail.com Subject: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4? To: users@tomcat.apache.org Date: Sunday, July 22, 2012, 9:03 AM I've installed     rpm -qa | grep -i ^tomcat         tomcat-lib

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
Hi, On Sun, Jul 22, 2012, at 09:29 AM, Tony Anecito wrote: I do it at the OS level via the adaptor properties for windows. If your network does not support IPv6 I would disable it else you will get errors in your logs about IPv6 for like say DHCP assignment. My network supports IPv6 just

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
reading here on this issue: Re: Tomcat is only listening with ip6 and not ip4 http://linux.derkeiler.com/Mailing-Lists/Debian/2009-12/msg01262.html ... Thus you should report a bug against Tomcat. Also you can replace net.ipv6.bindv6only=1 with

RE: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Caldarale, Charles R
From: k9...@operamail.com [mailto:k9...@operamail.com] Subject: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4? I've installed rpm -qa | grep -i ^tomcat tomcat-lib-7.0.27-7.1.noarch

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Tim Watts
On Sun, 2012-07-22 at 08:03 -0700, k9...@operamail.com wrote: Linux svr 3.1.10-1.16-desktop #1 SMP PREEMPT Wed Jun 27 05:21:40 UTC 2012 (d016078) x86_64 x86_64 x86_64 GNU/Linux IPv4 is enabled on the server. The IPv6 stack is also enabled, and

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
Hi, On Sun, Jul 22, 2012, at 01:24 PM, Tim Watts wrote: On Sun, 2012-07-22 at 08:03 -0700, k9...@operamail.com wrote: Linux svr 3.1.10-1.16-desktop #1 SMP PREEMPT Wed Jun 27 05:21:40 UTC 2012 (d016078) x86_64 x86_64 x86_64 GNU/Linux IPv4 is enabled

RE: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Caldarale, Charles R
From: Tim Watts [mailto:t...@cliftonfarm.org] Subject: Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4? Since you've told the OS to not allow IPv4 connections on IPv6 sockets, I believe you would need to configure

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
What happens if you install a real Tomcat from tomcat.apache.org same issue What do your Connector elements in your server.xml file look like? It's out-of-the-box: ... Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2

RE: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Caldarale, Charles R
From: k9...@operamail.com [mailto:k9...@operamail.com] Subject: Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4? Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Tim Watts
On Sun, 2012-07-22 at 10:32 -0700, k9...@operamail.com wrote: Hi, On Sun, Jul 22, 2012, at 01:24 PM, Tim Watts wrote: On Sun, 2012-07-22 at 08:03 -0700, k9...@operamail.com wrote: Linux svr 3.1.10-1.16-desktop #1 SMP PREEMPT Wed Jun 27 05:21:40 UTC 2012 (d016078)

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
Hi, On Sun, Jul 22, 2012, at 02:08 PM, Tim Watts wrote: No. I want Tomcat7 to listen ONLY on one address: the IPv4 loopback @ 127.0.0.1. No other IPv4 addresses, and no IPv6 addresses at all. Oh, that's easy: specify address=127.0.0.1 on your Connector. it certainly appears to be:

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread André Warnier
By the way, k9...@operamail.com wrote: (previously) : No. I want Tomcat7 to listen ONLY on one address: the IPv4 loopback @ 127.0.0.1. No other IPv4 addresses, and no IPv6 addresses at all. --- and netstat -pan --tcp | grep java tcp0 0 127.0.0.1:8080 0.0.0.0:*

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
On Sun, Jul 22, 2012, at 08:42 PM, André Warnier wrote: You still have a Connector listening on port 8009 (and IPv6). You may want to disable that one too (the AJP connector), to match your above desires. Of course. Now at, netstat -pan --tcp | grep java tcp0 0

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread Tim Watts
On Sun, 2012-07-22 at 11:21 -0700, k9...@operamail.com wrote: On Sun, Jul 22, 2012, at 02:08 PM, Tim Watts wrote: By default, Tomcat will listen on port 8080 on all available addresses (IPv6 and 4, barring configuration settings at the OS level). The key word in those java.net properties

Re: Tomcat 7.0.27 listens only @IPv6 localhost, ignores 'use IPv4' JAVA_OPTS in tomcat.conf. How to correctly force IPv4?

2012-07-22 Thread k9157
Hi, On Sun, Jul 22, 2012, at 03:57 PM, Tim Watts wrote: But doing so would close the door on ::1, turning prefer into require. Whereas binding on ::* allows both IPv6 4 in. I guess what's confusing in all this is that the preferences just deal with outbound addresses and connections (e.g.