Tomcat needs to support ipv4 on ipv6 environments

Bug #1420429 reported by Matt Bruzek on 2015-02-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat (Juju Charms Collection)
Undecided
Unassigned

Bug Description

I was using tomcat charm on hp-cloud and it does not bind to ipv4 networks

juju ssh tomcat/0

$ netstat -ln

tcp6 8080

Matt Bruzek (mbruzek) wrote :

A google search shows that adding "-Djava.net.preferIPv4Stack=true" to setenv.sh

Matt Bruzek (mbruzek) wrote :

Adding /usr/share/tomcat7/bin/setenv.sh

with

export CATALINA_OPTS="-Djava.net.preferIPv4Stack=true"

seemed to have fixed this problem.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers