I am building a session using :
Code:
sf = new Configuration().configure().buildSessionFactory();
It is creating an exception:
Code:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
	at javax.naming.InitialContext.getNameParser(InitialContext.java:439)
	at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
	at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:291)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
Here is my confiq file with some info removed for privacy/security issues:

Code:
<?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>
	<!-- a SessionFactory instance listed as /jndi/name -->
	<session-factory name="ReportPush">
		
		<!-- database-specific properties -->
		<property name="dialect">
			org.hibernate.dialect.Oracle9Dialect
		</property>
		<property name="connection.driver_class">
			oracle.jdbc.driver.OracleDriver
		</property>
		<property name="connection.username">REMOVED</property>
		<property name="connection.password">REMOVED</property>
		<property name="connection.url">
			REMOVED
		</property>

		<!-- using Jakarta Commons DBCP for connection pooling -->
		<property name="dbcp.maxActive">100</property>
		<property name="dbcp.whenExhaustedAction">1</property>
		<property name="dbcp.maxWait">120000</property>
		<property name="dbcp.maxIdle">10</property>
		
		<!-- DBCP Prepared Statement properties. -->
		<property name="dbcp.ps.maxActive">100</property>
		<property name="dbcp.ps.whenExhaustedAction">1</property>
		<property name="dbcp.ps.maxWait">120000</property>
		<property name="dbcp.ps.maxIdle">10</property>
		
		<property name="dbcp.validationQuery">select 1 from dual</property>
		<property name="dbcp.testOnBorrow">true</property>
		<property name="dbcp.testOnReturn">false</property>
		
		<!-- Using EhCache for query caching -->
		<property name="cache.use_query_cache">true</property>
		<property name="cache.provider_class">
			org.hibernate.cache.EhCacheProvider
		</property>
		<property name="cglib.use_reflection_optimizer">false</property>
		<property name="use_outer_join">true</property>

		<property name="query.substitutions">
			true 'Yes', false 'No', yes 'Yes', no 'No'
		</property>
		<!-- mapping files -->

		<mapping resource="Operator.hbm.xml" />
	</session-factory>
</hibernate-configuration>
Does anybody see an issue or is it something different? Thanks for the help