javax.naming.NoInitialContextException: Cannot instantiate class: org.exolab.jms .jndi.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 57) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288 )

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

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via Oracle Community by weepinsilence, 1 year ago
Cannot instantiate class: org.exolab.jms .jndi.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 57) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288 )
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) at >>>>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
via osdir.com by Unknown author, 2 years ago
Cannot instantiate class: org.jasig.portal.jndi.PortalInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.jasig.portal.jndi.PortalInitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
via osdir.com by Unknown author, 1 year ago
Cannot instantiate class: org.jasig.portal.jndi.PortalInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.jasig.portal.jndi.PortalInitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
via nabble.com by Unknown author, 1 year ago
Cannot instantiate class: > >> org.activemq.jndi.ActiveMQInitialContextFactory [Root exception is > >> java.lang.ClassNotFoundException: > >> org.activemq.jndi.ActiveMQInitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(Unknown > >> Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown > Source)
via ejbca by noorzulfadli
, 1 year ago
Cannot instantiat e class: org.jnp.interfaces.NamingContextFactory \[Root exception is java.lang.Cl assNotFoundException: org.jnp.interfaces.NamingContextFactory\] at javax.naming.spi.NamingManager.getInitialContext(NamingManage r.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext. java:288)
java.lang.ClassNotFoundException: org.exolab.jms.jndi.InitialContextF actory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)

Users with the same issue

Once, 3 weeks ago
Once, 1 month ago
Once, 1 month ago
5 times, 1 month ago
Once, 2 months ago

Write tip

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