My JBoss application has a bunch of java.net.BindExceptions to 8080 on startup
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
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:
Also make sure that the correct local IP address is specified for the loopback-address.
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).