Servlet Context unable to find the stated resource

javax.naming.NameNotFoundException
Javadoc
at org.apache.naming.NamingContext.lookup
(source)

Typical Exception Messages

  1. Name jdbc is not bound in this Context
  2. Name [comp/env] is not bound in this Context. Unable to find [comp].
  3. Name java:comp is not bound in this Context
  4. Name comp is not bound in this Context
  5. Name [BeanManager] is not bound in this Context. Unable to find [BeanManager].
  6. Name [UserDatabase] is not bound in this Context. Unable to find [UserDatabase].
  7. Name [comp/env] is not bound in this Context. Unable to find [comp].
  8. El nombre jdbc no este asociado a este contexto
  9. Name java: is not bound in this Context
  10. Name UserDatabase is not bound in this Context

Specific cases

Solution

rp, 3 months ago

You are likely missing a resource definition under <GlobalNamingResources> in your Tomcat's server.xml file. Please ensure all specified resources are defined here first.

External results for this pattern (443)

  1. 843840via Oracle Community2 weeks ago
    Name jdbc is not bound in this Context
    Show stack trace
  2. 843840via Oracle Community1 month ago
    Name jdbc is not bound in this Context
    Show stack trace
  3. 843840via Oracle Community1 month ago
    Name jdbc is not bound in this Context
    Show stack trace
  4. Sarithavia Stack Overflow1 month ago
    Name [comp/env] is not bound in this Context. Unable to find [comp].
    Show stack trace
  5. Name [comp/env] is not bound in this Context. Unable to find [comp].
    Show stack trace
  6. phillipuniversevia GitHub2 months ago
    Name [blCustomerService] is not bound in this Context. Unable to find [blCustomerService].
    Show stack trace
  7. 807591via Oracle Community2 months ago
    Name JDBC is not bound in this Context
    Show stack trace
  8. Name comp is not bound in this Context
    Show stack trace
  9. kumarkrish85via GitHub2 months ago
    Name [comp/env] is not bound in this Contex t. Unable to find [comp].
    Show stack trace
  10. droyopvia GitHub3 months ago
    Name [blSessionFixationEncryptionModule] is not bound in this Context. Unable to find [blSessionFixationEncryptionModule].
    Show stack trace