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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via aries-user by David Cao, 1 year ago
Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.
via aries-user by David Cao, 1 year ago
Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.
via incubator-aries-user by David Cao, 1 year ago
Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.
via Stack Overflow by user3849960
, 2 years ago
Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFactory.
via ibm.com by Unknown author, 1 year ago
Unable to find the InitialContextFactory com.ibm.websphere.naming.WsnInitialContextFactory.
via Stack Overflow by excalibur1491
, 1 year ago
Unable to find the InitialContextFactory org.jnp.interfaces.NamingContextFactory.
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.(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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.