javax.naming.NameNotFoundException: No object bound to name java:comp/env/com.foo.Bar

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 Oracle Community by djgerbavore, 1 year ago
No object bound to name java:comp/env/com.foo.Bar
via Oracle Community by zambizzi, 1 year ago
No object bound to name java:comp/env/MyDataSource
via Oracle Community by bobxu, 1 year ago
No object bound to name java:comp/env/itemejbref
via Google Groups by Roman Isitua, 3 months ago
No object bound to name java:comp/env/jdbc/books
via blogspot.com by Unknown author, 1 year ago
No object bound to name java:comp/env/jdbc/__default
via Oracle Community by sairndain, 1 year ago
No object bound to name java:comp/env/DddEJBBean
javax.naming.NameNotFoundException: No object bound to name java:comp/env/com.foo.Bar
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.foo.EJBProvider.lookup(EJBProvider.java:59)
at com.foo.EJBProvider.getInjectable(EJBProvider.java:37)
at com.foo.EJBProvider.getInjectable(EJBProvider.java:21)
at com.sun.jersey.core.spi.factory.InjectableProviderFactory._getInjectable(InjectableProviderFactory.java:217)
at com.sun.jersey.core.spi.factory.InjectableProviderFactory.getInjectable(InjectableProviderFactory.java:194)
at com.sun.jersey.server.spi.component.ResourceComponentInjector.processFields(ResourceComponentInjector.java:129)
at com.sun.jersey.server.spi.component.ResourceComponentInjector.(ResourceComponentInjector.java:90)
at com.sun.jersey.server.spi.component.ResourceComponentConstructor.(ResourceComponentConstructor.java:116)
at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest.init(PerRequestFactory.java:162)

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.

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