fixed auth relation

removed unused hooks
use openjdk-7-jdk instead of oracle jdk
capture log messages