Little Notes
  1. Could not initialize class HibernateUtil:
    When I moved my JSF project from one pc to another, I copy the folder of my project and just paste it to somewhere.  I started to get “Could not initialize class HibernateUtil” error when I ran my project. I searched the internet and in couple of pages, there was mentioned about missing classes. Finally I found that I didn’t add mysql-connector-java.jar file.