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

nabble.com | 5 months ago
  1. 0
    Add localDataSource="true" to the realm when using local database.
  2. 0
    Make sure you use the same name for your database everywhere in context.xml.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Configuring jdbc-pool (tomcat 7)

    Stack Overflow | 6 years ago | john
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  5. 0

    Spring DataSource JNDI with Tomcat Example - JournalDev

    journaldev.com | 4 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dbDataSource’ defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NameNotFoundException

      Name jdbc is not bound in this > Context

      at org.grails.tomcat.TomcatServer.start()
    2. org.grails.tomcat
      TomcatServer.start
      1. org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:135)
      1 frame
    3. grails.web.container
      EmbeddableServer$start$0.call
      1. grails.web.container.EmbeddableServer$start$0.call(Unknown Source)
      1 frame
    4. Unknown
      RunApp$_run_closure1.doCall
      1. _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
      2. _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
      3. _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:287)
      4. _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
      5. _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
      6. _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
      7. _GrailsRun_groovy.runInline(_GrailsRun_groovy:115)
      8. _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
      9. _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
      10. _GrailsRun_groovy$_run_closure8_closure14.doCall(_GrailsRun_groovy:257)
      11. _GrailsRun_groovy$_run_closure8_closure14.doCall(_GrailsRun_groovy)
      12. _GrailsPackage_groovy$_run_closure8.doCall(_GrailsPackage_groovy:293)
      13. _GrailsPackage_groovy$_run_closure8.call(_GrailsPackage_groovy)
      14. _GrailsRun_groovy$_run_closure8.doCall(_GrailsRun_groovy:242)
      15. RunApp$_run_closure1.doCall(RunApp.groovy:35)
      15 frames
    5. gant
      Gant.processTargets
      1. gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
      2. gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
      3. gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
      4. gant.Gant.withBuildListeners(Gant.groovy:344)
      5. gant.Gant.this$2$withBuildListeners(Gant.groovy)
      6. gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
      7. gant.Gant.dispatch(Gant.groovy:334)
      8. gant.Gant.this$2$dispatch(Gant.groovy)
      9. gant.Gant.invokeMethod(Gant.groovy)
      10. gant.Gant.processTargets(Gant.groovy:495)
      11. gant.Gant.processTargets(Gant.groovy:480)
      11 frames