javax.naming.NameNotFoundException: No object bound for java:comp/env [Root exception is java.lang.NullPointerException]

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 Oracle Community by 807581, 1 year ago
No object bound for java:comp/env [Root exception is java.lang.NullPointerException]
via Oracle Community by 843830, 1 year ago
No object bound for java:comp/env [Root exception is java.lang.NullPointerException]
via Oracle Community by 843830, 1 year ago
No object bound for java:comp/env [Root exception is java.lang.NullPointerException]
via Oracle Community by 843789, 1 year ago
No object bound for java:comp/env/jms/ConnectionFactory [Root exception is java.lang.NullPointerException]
via Oracle Community by 843830, 1 year ago
No object bound for java:comp/env/jms/ConnectionFactory [Root exception is java.lang.NullPointerException]
via hivmr.com by Unknown author, 1 year ago
No object bound for java:comp/env/jms/ConnectionFactory [Root exception is java.lang.NullPointerException]
javax.naming.NameNotFoundException: No object bound for java:comp/env [Root exception is java.lang.NullPointerException]
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:161)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.ns.DBObject.initDataSource(DBObject.java:222)
at com.ns.DBObject.connectPool(DBObject.java:213)
at com.ns.DBObject.(DBObject.java:91)
at com.ns.DBObject.getInstance(DBObject.java:122)
at com.ncharter.NCContextListener.contextInitialized(NCContextListener.java:28)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4010)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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