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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by dereck

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

,
via Stack Overflow by john

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

Solutions on the web

via grokbase.com by Unknown author, 1 year ago
Name jdbc is not bound in this Context
via boyunjian.com by Unknown author, 2 years ago
via Stack Overflow by Ehsan Khodarahmi
, 2 months ago
Name [jdbc/mysql/my_db] is not bound in this Context. Unable to find [jdbc].
via Server Fault by Ehsan Khodarahmi
, 11 months ago
Name [jdbc/mysql/mydb] is not bound in this Context. Unable to find [jdbc].
via Stack Overflow by Ehsan Khodarahmi
, 11 months ago
Name [jdbc/mysql/mydb] is not bound in this Context. Unable to find [jdbc].
via Oracle Community by 843830, 1 year ago
Name QueueConnectionFactory is not bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:351)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 5 days ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
31 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.