[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Null Pointer exception with new Configuration()

laxmantr do-not-reply at jboss.com
Mon Jul 24 15:52:12 EDT 2006


I am trying to connect to mysql through Hibernate
I have created a normal java project in eclipse.
I created hibernate.cfg.xml , test.hbm.xml  
I have created a POJO and a test client which has the following line

Configuration c = new Configuration();

It gives me null pointer exception. I have hibernate-all.jar, hibernate.cfg.xml in classpath and I am able to compile all classes.

Please help



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960503#3960503

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960503



More information about the jboss-user mailing list