javax.naming.NameNotFoundException: Name comp/env/persistence not found in context "java:".

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 Stack Overflow by akshay
, 2 years ago
Name comp/env/persistence not found in context "java:".
via Coderanch by Rajani pb, 1 year ago
Name comp/env/ejb not found in context "java:".
via Oracle Community by 843830, 1 year ago
Name comp/env/ejb not found in context "java:".
via Stack Overflow by paul
, 2 years ago
Name comp/env/service not found in context "java:".
via JBoss Issue Tracker by Jacques Desmazières, 1 year ago
Name comp/env/jdbc not found in context "java:".
via ibm.com by Unknown author, 2 years ago
javax.naming.NameNotFoundException: Name comp/env/persistence not found in context "java:".
at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1837)
at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1166)
at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1095)
at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1233)
at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:394)
at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:214)
at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:154)

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
2 times, 2 years ago

Write tip

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