Please note that these documents apply to OpenShift Online v2 only (accounts created before August 1st, 2016).
If you are using one of the OpenShift 3 products, please refer to documents available at

JBoss AS Application Hosting

The JBoss AS Cartridge

Provides the JBoss AS application server on OpenShift. OpenShift Online currently supports JBoss AS 7.1.