> -----Original Message-----
> From: Daniel Mikusa [mailto:dmik...@vmware.com]
> Sent: Wednesday, September 12, 2012 10:00 AM
> To: Tomcat Users List
> Subject: Re: HTTP NIO connector not supporting IPv6
> 
> On Sep 12, 2012, at 1:29 AM, Aditi Sinha wrote:
> 
> > Thanks Dan, Jeff.
> >
> >
> >
> > There are no errors in catalina.log file.
> >
> > The connector tags are defined as below in server.xml. This
> > configuration does not support IPv6.
> >
> >
> >  <Connector port="8080" protocol="*HTTP/1.1*"
> connectionTimeout="20000"
> > redirectPort="8443" />
> >
> >
> >
> >  <Connector port="8443" protocol="*
> > org.apache.coyote.http11.Http11NioProtocol*" SSLEnabled="true"
> > maxThreads="150"
> >
> >      scheme="https" secure="true" clientAuth="false"
> sslProtocol="TLS"
> > keystoreFile="xxxxxx" keystorePass="xxxxxx"/>
> >
> 
> Tried it on my MBP (10.7 w/Java 1.6.0_35) and it worked fine.  Tried on
> Windows XP (only version I have available) w/ Java 1.6.0_35 and was
> able to replicate the problem behavior.  According to the following bug
> report this is a limitation of the OS / JVM.  Looks like a recent
> versions of Windows and a recent version of the JVM are required to
> resolve this.
> 
> Try upgrading from 1.6.0_25 to 1.6.0_35.
> 
> http://bugs.sun.com/view_bug.do?bug_id=6230761
> 
> Dan
> 
One workaround is to explicitly define the IPv4 and IPv6 addressing in the 
<connector>.
That is, add address="0.0.0.0" for any IPv4 connectors and address="[::]" for 
any IPv6 connectors. (Or use your real addresses instead of the "any" addresses 
listed here.)
This means setting up 2 sets of connectors for each port/protocol, but there's 
nothing wrong with being explicit.
This is what I had to do to get the APR protocol to set up for IPv4.

Plus, why do you have asterisks (*) bracketing the protocols?  All examples 
I've ever seen don't use them.  They are just quoted strings. From the default 
server.xml shipped with Tomcat:
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to