javax.naming.NoInitialContextException

Need to specify class name in environment or sys tem property, or as an applet parameter, or in an application resource file: java.naming.factory.in itial

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1234

  • via Hibernate JIRA by abe zafar, 1 year ago
    Need to specify class name in environment or sys tem property, or as an applet parameter, or in an application resource file: java.naming.factory.in itial
  • via Hibernate JIRA by abe zafar, 1 year ago
    Need to specify class name in environment or sys tem property, or as an applet parameter, or in an application resource file: java.naming.factory.in itial
  • via Google Groups by Maurizio Gallelli, 3 weeks ago
    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
  • Stack trace

    • javax.naming.NoInitialContextException: Need to specify class name in environment or sys tem property, or as an applet parameter, or in an application resource file: java.naming.factory.in itial 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:282) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:618) at com.rhi.mjq.dataaccess.HbSessionHelper.<clinit>(HbSessionHelper.java:28) at com.rhi.mjq.dataaccess.dao.PersonDao.findByLastName(PersonDao.java:36) at com.rhi.mjq.dataaccess.dao.PersonDaoTest.testfindByLastName(PersonDaoTest.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    51 more bugmates