Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Tab.loadUserPreferences() has thrown a NameNotFoundException
    Unsorted
    0
    0
    0
  2. NamingContext.lookup() has thrown a NameNotFoundException
    Tomcat Catalina
    144
    15
    29

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
javax.naming.NameNotFoundException: El nombre jdbc no este asociado a este contexto
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
10 frames hidden

Solution

poroszd3 years ago

Make sure you use the same name for your database everywhere in context.xml.

Check the source of this solution for more info

External results for this pattern (10)

  1. mlvo83via GitHub1 month ago
    Error creating bean with name 'entityManagerFactory' defined in org.baeldung.config.PersistenceJNDIConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactory' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in org.baeldung.config.PersistenceJNDIConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is javax.naming.NameNotFoundException: Name [jdbc/BaeldungDatabase] is not bound in this Context. Unable to find [jdbc].
    Show stack trace
  2. 843840via Oracle Community3 months ago
    Name jdbc is not bound in this Context
    Show stack trace
  3. 843840via Oracle Community3 months ago
    Name jdbc is not bound in this Context
    Show stack trace
  4. Sarithavia Stack Overflow3 months 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 GitHub3 months ago
    Name [blCustomerService] is not bound in this Context. Unable to find [blCustomerService].
    Show stack trace
  7. 807591via Oracle Community4 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 GitHub4 months ago
    Name [comp/env] is not bound in this Contex t. Unable to find [comp].
    Show stack trace
  10. droyopvia GitHub5 months ago
    Name [blSessionFixationEncryptionModule] is not bound in this Context. Unable to find [blSessionFixationEncryptionModule].
    Show stack trace