Hi
I am getting this exception eveytime i run my test application. I am not using any JNDI naming stuff nor any application server, its just a simple test program.
The application runs fine as expected but how can i avoid this exception.
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:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.getNameParser(InitialContext.java:429)
at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:172)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
at com.hyb.expl.base._BaseRootDAO.initialize(_BaseRootDAO.java:54)
at com.hyb.expl.base._BaseRootDAO.initialize(_BaseRootDAO.java:38)
at TestExe.main(TestExe.java:26)
|