Adding better error reporting and adding hibernate as dependency to
module.