Downgraded JDK version to deal with an older tomcat server.
Some fixes to accomodate a tomcat server behind an apache front.