This is my hibernate util code
public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); private static SessionF
If someone is facing the same problem who are using Glassfish server you have to do the following,
Go your Glassfish installation path and add your database's jdbc driver under the path glassfish/domains/domain1/lib/
glassfish/domains/domain1/lib/
Restart your Glassfish server.