deploy_glassfish.py added warning and error handling for missing JDK 7 or unset AS_JAVA variable