i'm getting this error when i tried the example. i'm using mysql5.1 and hibernate 3.0 ----------------------------- Exception in thread "main" java.lang.NullPointerException
----------------------------- init: deps-module-jar: deps-ear-jar: deps-jar: compile-single: run-main: Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Environment <clinit> INFO: Hibernate 3.2.5 Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : cglib Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Environment <clinit> INFO: using JDK 1.4 java.sql.Timestamp handling Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Configuration configure INFO: configuring from resource: /hibernate.cfg.xml Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Configuration getConfigurationInputStream INFO: Configuration resource: /hibernate.cfg.xml Aug 3, 2009 5:12:18 PM org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : contact.hbm.xml Could not parse mapping document from resource contact.hbm.xml Exception in thread "main" java.lang.NullPointerException