javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

Oracle Community | 3002728 | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Login Page problem

    Oracle Community | 1 year ago | 3002728
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  2. 0

    Spring, configure the DataSource through JNDI having remote JBoss Server

    Stack Overflow | 5 years ago | Talha Ahmed Khan
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  3. 0

    Unable to lookup JNDI name [java:/comp/env/jdbc/ptsvcs

    Stack Overflow | 2 years ago | Gajendra Singh
    org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:/comp/env/jdbc/ptsvcs]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Context [/heatclinic] startup failed due to previous errors

    Stack Overflow | 2 years ago | sanil sathyan
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitManager' while setting bean property 'persistenceUnitManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blMergedDataSources' defined in resource loaded from byte array: Cannot resolve reference to bean 'webDS' while setting bean property 'sourceMap' with key [TypedStringValue: value [jdbc/web], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webDS': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  6. 0

    FAIL - Application at context path /mycompany could not be started

    Stack Overflow | 2 years ago | alex_gabriel
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blMergedDataSources' defined in resource loaded from byte array: Cannot resolve reference to bean 'webDS' while setting bean property 'sourceMap' with key [TypedStringValue: value [jdbc/web], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webDS': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.naming.NameNotFoundException

    Name jdbc is not bound in this Context

    at org.apache.naming.NamingContext.lookup()
  2. Web Container Naming Utilities
    SelectorContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    3. org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
    3 frames
  3. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(InitialContext.java:411)
    1 frame
  4. com.digital.ecommerce
    EcommAssembler.<init>
    1. com.digital.ecommerce.fw.assembler.EcommAssemblerParent.<init>(EcommAssemblerParent.java:80)
    2. com.digital.ecommerce.fw.assembler.EcommAssembler.<init>(EcommAssembler.java:15)
    2 frames
  5. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    5. java.lang.Class.newInstance(Class.java:379)
    5 frames