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 Terracotta by suchichoudhary2, 1 year ago
Name jdbc is not bound in this Context
via Google Groups by Stefano T, 3 months ago
Name jdbc is not bound in this Context
via Coderanch by Antigoni Tsouri, 11 months ago
Name jdbc is not bound in this Context
via Stack Overflow by bzuillsmith
, 2 years ago
via Coderanch by Bell Katapa, 11 months ago
Name [jdbc/myDS] is not bound in this Context. Unable to find [jdbc].
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:152)
at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:401)
at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 times, 5 months ago
Once, 9 months ago
Once, 11 months ago
Once, 1 year ago
31 more bugmates

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