My JBoss application has a bunch of java.net.BindExceptions to 8080 on startup

Code: 
KB-E1019
Applies to: 
OpenShift
Issue: 

I see a bunch of these error when my JBoss application starts:

14:08:28,816 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Error starting endpoint: java.net.BindException: Address already in use /127.1.1.129:8080

Resolution: 

The cause of this error could be that you copied a previous standalone.xml file and it has the IP address of a different OpenShift app.

If you're using MySQL on OpenShift make sure that your connection URL is using the right local IP address -- for example:
    <connection-url>jdbc:mysql://127.1.1.129:3306/databasename</connection-url>

Also make sure that the correct local IP address is specified for the loopback-address.
    <interfaces>
        <interface name="management">
            <loopback-address value="127.1.5.129"/>
        </interface>
        <interface name="public">
            <loopback-address value="127.1.5.129"/>
        </interface>
    </interfaces>

The easiest way to find what your applications IP address is is by running:
> git log --grep "Creating template" -p|grep loopback-address

This is grepping the first commit to the repositiory (which is the OpenShift official tempalte for JBoss AS7 apps).