Like I said, getting Hibernate working bundled in app, is no trivial task.
There is a long discussion about it, with even some exact instructions on how to do that.
But it has limitations, hence might not work at all.
Same goes for any other JEE bundled framework / api.