javax.servlet.UnavailableException: Error looking up dataSource: Name jdbc is not bound in this Context

Oracle Community | 807593 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Learning MS JDBC and JNDI Resource

    Oracle Community | 1 decade ago | 807593
    javax.servlet.UnavailableException: Error looking up dataSource: Name jdbc is not bound in this Context

    Root Cause Analysis

    1. javax.servlet.UnavailableException

      Error looking up dataSource: Name jdbc is not bound in this Context

      at readjndi.MyJndi.init()
    2. readjndi
      MyJndi.init
      1. readjndi.MyJndi.init(MyJndi.java:47)
      1 frame
    3. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:258)
      1 frame
    4. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
      2. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      4. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      6. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
      8. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      9. org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      10. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      11. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      12. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      13. org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
      14. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      15. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      16. org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      17. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      18. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      19. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      20. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
      21. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      22. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      23. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      24. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      25. org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      26. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      27. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      27 frames
    5. org.apache.catalina
      HttpProcessor.run
      1. org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
      2. org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
      2 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:536)
      1 frame