SIau_Tie wrote:
can you post the stack trace please?
thank for responding but i got it working. but am having one more problem, hibernate.cfg.xml is being called but its not able to find the mapping file specified xxx.hbm.xml I have placed this xxx.hbm.xml in src folder next to all .java files. am I doing anything wrong?
Following is what i get ...
org.hibernate.MappingException: Resource: contact.hbm.xml not found
at org.hibernate.cfg.Configuration.addResource(Configuration.java:442)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1381)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1353)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1335)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1302)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1264)
at mypackage.InsertServlet.main(InsertServlet.java:15)
Exception in thread "main" java.lang.NullPointerException
at mypackage.InsertServlet.main(InsertServlet.java:37)
Thanks foe nay suggestions/idea...