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

  1. ,
    via Stack Overflow by dereck

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

  2. ,
    via Stack Overflow by john

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

Solutions on the web

via Apache's JIRA Issue Tracker by guofeng zhang, 1 year ago
via Oracle Community by 843841, 2 years ago
via hibernate.org by Unknown author, 1 year ago
via hibernate.org by Unknown author, 2 years ago
via grokbase.com by Unknown author, 2 years ago
javax.naming.NameNotFoundException: Name [jdbc/data] is not bound in this Context. Unable to find [jdbc].	at org.apache.naming.NamingContext.lookup(NamingContext.java:819)	at org.apache.naming.NamingContext.lookup(NamingContext.java:167)	at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:97)	at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)	at org.apache.naming.NamingContext.lookup(NamingContext.java:842)	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)	at org.apache.naming.NamingContext.lookup(NamingContext.java:830)	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)	at org.apache.naming.NamingContext.lookup(NamingContext.java:830)	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)	at org.apache.naming.NamingContext.lookup(NamingContext.java:830)	at org.apache.naming.NamingContext.lookup(NamingContext.java:167)	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156)	at javax.naming.InitialContext.lookup(Unknown Source)	at confDataSource.ConnectToDatabase.getConnection(ConnectToDatabase.java:18)	at org.apache.jsp.index_jsp._jspService(index_jsp.java:98)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	at java.lang.Thread.run(Unknown Source)