Using openjdk instead of oracle JDK for jenkins, replaced deprecated switches with current ones. Changed the way we check catalina.out.