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

Server Fault | john | 6 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0
    samebug tip
    Add localDataSource="true" to the realm when using local database.
  2. 0
    samebug tip
    Make sure you use the same name for your database everywhere in context.xml.
  3. 0
    samebug tip
    Try removing the server.xml file and adding it again to the project, and do a Clean Build.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Configuring jdbc-pool (tomcat 7)

    Stack Overflow | 6 years ago | john
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  6. 0

    How do I set up a Realm with a MySql Connection Pool in Tomcat 7?

    Stack Overflow | 4 years ago | bzuillsmith
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

  1. rafael 1 times, last 1 month ago
  2. treefolk 1 times, last 3 months ago
  3. davidvanlaatum 1 times, last 7 months ago
7 unregistered visitors
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
    NamingContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:803)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:159)
    2 frames