Tomcat needs to support ipv4 on ipv6 environments

Bug #1420429 reported by Matt Bruzek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat (Juju Charms Collection)
New
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

Revision history for this message
Matt Bruzek (mbruzek) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.