Description of problem: create scalable jbossas-7 app. Add java6 and delete java7 to the directory .openshift/markers, git push and ssh into app to check java version, it is still jdk-1.7. Version-Release number of selected component (if applicable): INT(devenv_3281) How reproducible: always Steps to Reproduce: 1. create scalable jbossas-7 app1 2. touch java6 file in the app's directory 'app1/.openshift/markers' 3. delete java7 and then git push 4. ssh into app to check the JAVA_HOME env env |grep -i java_home Actual results: [app1-zqd.int.rhcloud.com 51a5b8c603ef64128c000127]\> env |grep -i java_home JAVA_HOME=/etc/alternatives/java_sdk_1.7.0 Expected results: JAVA_HOME version should be java_sdk_1.6.0 Additional info: [zqjbossas2-zqd.dev.rhcloud.com 51a5e18128ce9f33da000001]\> find .| grep markers ./jbossas/versions/7/template/.openshift/markers ./jbossas/versions/7/template/.openshift/markers/java7 ./jbossas/template/.openshift/markers ./jbossas/template/.openshift/markers/java7 ./app-root/runtime/repo/.openshift/markers ./app-root/runtime/repo/.openshift/markers/java6
https://github.com/openshift/origin-server/pull/2671 Note: there is no 'java6' marker; to enable Java 7, use the 'java7' marker. To enable Java 6, delete the 'java7' marker.
(In reply to Dan Mace from comment #1) > https://github.com/openshift/origin-server/pull/2671 > > Note: there is no 'java6' marker; to enable Java 7, use the 'java7' marker. > To enable Java 6, delete the 'java7' marker. Is the workflow changed? for in current STG or PROD , java 7 is the default version.
By default, the 'java7' marker is present in new application repositories, so Java 7 is still the default.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/c3e63de3c7f84cd62df99634dc58371cfd19fd6c Bug 968279: Fix jboss[as|eap] java7 marker detection
Test this issue on devenv_3290, it has been fixed steps: 1) create one scalable app(jbossas-7/eap/ews1.0/ews2.0) 2) delete the java7 file in the directory (app/.openshift/markers) 3) git push 4) ssh into app and check the JAVA_HOME env for example: jbossas-7: [zqjbossas2-zqddd.dev.rhcloud.com 33b54ff8c8fe11e29f0c22000aa50868]\> env |grep -i java_home JAVA_HOME=/etc/alternatives/java_sdk_1.6.0