javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: >>>> org.jnp.interfaces.NamingContextFactory] at >>>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Google Groups by Roberto, 1 year ago
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: >>>> org.jnp.interfaces.NamingContextFactory] at >>>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
via Stack Overflow by Unknown author, 2 years ago
Cannot instantiate class: org.osjava.sj.SimpleContextFactory [Root exception is java.lang.ClassNotFoundExcepti on: org.osjava.sj.SimpleContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
via Oracle Community by 843829, 1 year ago
Cannot instantiate class: javax.naming.InitialContext. Root exception is java.lang.ClassCastException at javax.naming.spi.NamingManager.getInitialContext NamingManager.java:649)
via Coderanch by vedika ashtekar, 1 year ago
Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory]at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
via markmail.org by Unknown author, 1 year 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 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
via Coderanch by Michael Lipton, 1 year 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.initialat javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: >>>> org.jnp.interfaces.NamingContextFactory] at >>>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
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.