CHanged Hibernate to version 4