First thanks for such good example on hibernate. Even hibernate.org book does not work.
I downloaded hibernate code and customized it for oracle. After some listener errors ultimately code started running without any error. And I get log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Inserting Record Done Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?)