HI ..Thanks for the reply .
cfg.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" >
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">
jdbcracle:thin:@TRAINHR1011:1521:RETAILS</property>
<property name="hibernate.connection.username">fcr</property>
<property name="hibernate.connection.password">fcr</property>
<property name="hibernate.connection.pool_size">1</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="show_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
</session-factory>
</hibernate-configuration>
I have added some jars in the class path , now i am getting the following error :
java.lang.ExceptionInInitializerError
org.hibernate.cfg.Configuration.reset(Configuration.java:330)
org.hibernate.cfg.Configuration.<init>(Configuration.java:296)
org.hibernate.cfg.Configuration.<init>(Configuration.java:300)
com.jitu.core.HibernateUtil.sessionFactory(HibernateUtil.java:11)
com.jitu.http.server.CreateUserServlet.doPost(CreateUserServlet.java:41)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NullPointerException
org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:167)
org.hibernate.cfg.Environment.<clinit>(Environment.java:608)
org.hibernate.cfg.Configuration.reset(Configuration.java:330)
org.hibernate.cfg.Configuration.<init>(Configuration.java:296)
org.hibernate.cfg.Configuration.<init>(Configuration.java:300)
com.jitu.core.HibernateUtil.sessionFactory(HibernateUtil.java:11)
com.jitu.http.server.CreateUserServlet.doPost(CreateUserServlet.java:41)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Please help me .