javax.naming.NoInitialContextException

Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web16

  • via Unknown by David Cao,
  • via Unknown by David Cao,
  • via Unknown by David Cao,
  • Stack trace

    • javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory. at org.apache.aries.jndi.ContextHelper.getInitialContext(ContextHelper.java:148) at org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:49) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:318) at javax.naming.InitialContext.init(InitialContext.java:253) at javax.naming.InitialContext.<init>(InitialContext.java:227) at org.apache.aries.jpa.container.unit.impl.JndiDataSource.getDs(JndiDataSource.java:63) at org.apache.aries.jpa.container.unit.impl.DelayedLookupDataSource.getConnection(DelayedLookupDataSource.java:36) at org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:137) at org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:112) at org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:239) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:725)

    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 visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,