fix error running applications, downgraded hibernate to use jpa 2.0
assume javaee 6, not 7