HibernateUtil doesn't work as provided in documentation
Description
Activity

Former user October 6, 2016 at 2:45 AM
, please use community resources for help: http://hibernate.org/community/
Seymur Farziyev December 9, 2015 at 7:15 PMEdited
Hi. I am working already since 2 days on this issue and didn't find yet alternative solution. I am using Glassfish 4.1.13 with Hibernate 4.3.x version. My simple app uses PostgreSQL and runs everything together fine in my local machine. When I migrate configured project for production to the remote server, i am getting always the following runtime error:
----------------
----------------
I have created HibernateUtil.java clicking File --> New --> Hibernate --> HibernateUtil path. So, I am sure, it is not my fault and something like bug of Hibernate framework.
How i can change my HibernateUtil class implementation to the supported version? Can you please provide some sample code?
Thanks and regards,
Seymur F,
Vladimir Bueb September 10, 2015 at 8:42 PM
Dear Gail,
Thank you for your response.
So far I have not used 5.0. As I understand, it seems there is no direct equivalent of the HibernateUtil class in Hibernate v4 as it is replaced by the bootstrap mechanism in v5.
So, I guess this ticket can be closed.

Former user September 9, 2015 at 7:42 PM
We are no longer improving the documentation in 4.3 branch. Does this apply to 5.0 as well?
HibernateUtil doesn't work as provided in documentation, it leads to the following error :
The following HibernateUtil example seems to be the right one :
Best regards