tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lakshmi Venkataraman" <laks...@foundrynet.com>
Subject RE: [SOLVED] Tomcat 5.5, IPv6, APR, HTTP and HTTPS
Date Tue, 22 May 2007 16:13:56 GMT
Correction to Linux section.

-----Original Message-----
From: Lakshmi Venkataraman [mailto:lakshmi@foundrynet.com] 
Sent: Tuesday, May 22, 2007 8:59 AM
To: Tomcat Users List
Subject: RE:[SOLVED] Tomcat 5.5, IPv6, APR, HTTP and HTTPS

 My application has to work on both Unix and Windows over both IPv4 and
IPv6 transport
using Http or Https.

I am documenting my experience for a "newbie".

Here is a summary of what works on what platform.

Windows:  (See apache bug 41973 for additional comments)
  tcnative-1.1.8-ipv4.dll works only for IPv4
  {tcnative-1.1.7-ipv6, tcnative-1.1.8-ipv6, tcnative-1.1.9.dll} works
for both IPv4 and IPv6
  providing you define two HTTP connectors both listening to port 80
(whatever port) with
  address="0.0.0.0" and address="::"
  Likewise, you have to define two HTTPS connectors both listening to
port 443.
  tcnative-1.1.10  - I got an error "Error starting EndPoint.No Such
host". I did not
  pursue this because of the above working options.

Solaris 9:
 Compiled APR 1.2.8, tcnative-1.1.8, openssl-0.9.8b to produce
libtcnative-1.1.8.so  In addition to libc.so, this also needed
libgcc.so. Once this was included in the path,  HTTP and HTTPS transport
over IPv4 and IPv6 worked like a charm without any additional
configuration changes like Windows.

Linux RH4:
 Compiled APR 1.2.8, tcnative-1.1.8. The server that I was working on
already had openSSL-0.9.8b.
 So did not have to compile this. While compiling tcnative, used --with
ssl option and gave its location.
 Produced libtcnative-1.1.8.so.
 Again both HTTP and HTTPS worked over both IPV4 and IPv6 transport.


Regards
Lakshmi
-----Original Message-----
From: Lakshmi Venkataraman [mailto:lakshmi@foundrynet.com]
Sent: Wednesday, May 02, 2007 8:03 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5, IPv6, APR, HTTP and HTTPS

Corrections:
Here is a summary of what works and what does not.
Tomcat 5.5.23, WinXP, JDK 1.5, OpenSSL-0.9.8b is the base configuration.

 tcnative-1-ipv4.dll (ver 1.1.7) works for both HTTP and HTTPS.
 tcnative-1-ipv6.dll (ver 1.1.7) works for HTTP and HTTPS only with ipv6
transport
  between client and server.   It DOES NOT support ipv4 transport.

Questins 1)  Should not an ipv6 library support both ipv4 and ipv6
transport?

tcnative-1.dll (version 1.1.9) DOES not work at all for both HTTP and
HTTPS in ipv4 or ipv6 mode.

tcnative-1.dll (version 1.1.10) works for HTTP and HTTPS with ipv4
transport between client and server.

Both 1.1.9 and 1.1.0 do not have a separate ipv6 versions.

In all cases above, Tomcat 5.5 server and my application services come
up.

DOES NOT WORK means the following:
When I try to bring my web app in my browser, I see
ClassNotFoundException caused by java.net.ConnectionException:Connection
Refused in the Java Console.

Question 2) Is this a bug in tcnative-1-ipv6.dll  or am I missing
something?

Question 3) Why do versions 1.1.9 and 1.1.10 do not have a separate ipv6
library?
            Ideally you want to have the same library for both ipv4 and
ipv6.


Thanks
Lakshmi
 

-----Original Message-----
From: Lakshmi Venkataraman [mailto:lakshmi@foundrynet.com]
Sent: Wednesday, May 02, 2007 4:57 PM
To: Tomcat Users List
Subject: Tomcat 5.5, IPv6, APR, HTTP and HTTPS

 

My setup: Tomcat 5.5.23, JDK 1.5, WIN XP I am also using tcnative-1.dll
and OpenSSL 0.9.8b Client browser: IE6, Firefox 1.5 for IPv4
IE7 for IPv6.
I successfully tested Tomcat 5.5.23 by enabling ipV6 without using APR.

SUCCESS:
If I use tcnative-ipv4.dll (version 1.1.8) I find that I am able to
start Tomcat and other service in the backend.
And my web application comes up in both HTTP and HTTPS mode.

However, if I use tcnative-ipv6.dll (version 1.1.8), Tomcat and other
backend services start successfully. 
FAILURE:  
My web application  does not come up either in HTTP or HTTPS using ipv4
or ipv6.
Java console shows ClassNotFoundException  caused by
java.net.ConnectionException:Connection Refused.

Anybody has any clue as to why I am getting the above exception for both
http://localhost and https://localhost using ipv4?
Also http://[3000::211] or https://[3000::211] does not work either in
IE 7.


I also tried tcnative-1.dll (version) 1.1.9. Same problem as
tcnative-ipv6.dll (ver 1.1.8).

I feel there is something missing in my configuration. 

Thanks in advance for your help,
Lakshmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message