javax.naming.NameNotFoundException: Name [java:/comp/env/jdbc/MySqlDS] is not bound in this Context. Unable to find [java:].

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 Stack Overflow by bobd
, 2 years ago
Name [java:/comp/env/jdbc/MySqlDS] is not bound in this Context. Unable to find [java:].
via openxava by benitojp
, 1 year ago
El nombre jdbc no este asociado a este contexto
via codeotel.com by Unknown author, 2 years ago
via dolinked.com by Unknown author, 2 years ago
via codedmi.com by Unknown author, 2 years ago
via Stack Overflow by Suhail Gupta
, 2 years ago
javax.naming.NameNotFoundException: Name [java:/comp/env/jdbc/MySqlDS] is not bound in this Context. Unable to find [java:].
at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:158)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)

Users with the same issue

2 times, 2 months ago
6 times, 6 months ago
Once, 10 months ago
Once, 11 months ago
2 times, 1 year ago

Write tip

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