On 30/06/2011 21:57, Christopher Schultz wrote:
> Rohan,
>
> On 6/30/2011 8:01 AM, Rohan Kadam wrote:
>> We had recently upgraded tomcat from 5.5.30 to 7.0.14. We were earlier facing
>> problem that tomcat was not able to connect using Static IP address. The fix
>> that we found was adding
>> address = "0.0.0.0" in the Connector tag of server.xml in the "conf" directory.
>
> This was likely because your JVM prefers an IPv6 stack, while using an
> IPv4 address (0.0.0.0) explicitly causes it to bind to an IPv4 address.
>
> When you say "not able to connect", do you mean that the client couldn't
> reach Tomcat, or that Tomcat couldn't connect to some other server?
>
>> After upgrading tomcat to 7.0.14, we have done the same process, but we are
>> not able to connect.
Hint: JAVA_OPTS="-Djava.net.preferIPv4Stack=true" can be set in
setenv.sh|bat
p
|