javax.naming.NameNotFoundException

Name jdbc is not bound in this Context

Samebug tips3

Add localDataSource="true" to the realm when using local database.

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3389

  • via Coderanch by Manon Baratt, 7 months ago
    Name jdbc is not bound in this Context
  • via Coderanch by Perak Patel, 7 months ago
    Name jdbc is not bound in this Context
  • via Oracle Community by 843793, 1 year ago
    Name jdbc is not bound in this Context
  • Stack trace

    • javax.naming.NameNotFoundException: Name jdbc is not bound in this Context 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:152) at javax.naming.InitialContext.lookup(InitialContext.java:411) at com.digital.ecommerce.fw.assembler.EcommAssemblerParent.<init>(EcommAssemblerParent.java:80) at com.digital.ecommerce.fw.assembler.EcommAssembler.<init>(EcommAssembler.java:15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:379)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 years ago
    6 times, 2 months ago
    Once, 6 months ago
    2 times, 10 months ago
    13 times, 10 months ago
    29 more bugmates