org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

nabble.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Grails User (Old Archive) - Questions about JNDI/JDBC for Tomcat/Postgres/Grails (working off 1.3.0.BUILD-SNAPSHOT)

    nabble.com | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  2. 0

    Grails Development environment consistently exits with error

    Stack Overflow | 6 years ago | Asaf
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'upaySite': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name upaySite is not bound in this Context
  3. 0

    OX portlet on Liferay - not find datasource

    openxava | 8 years ago | icarrara
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring, configure the DataSource through JNDI having remote JBoss Server

    Stack Overflow | 5 years ago | Talha Ahmed Khan
    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.apache.naming.NamingContext.lookup()
  2. Web Container Naming Utilities
    SelectorContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    3. org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    4. org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    5. org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    6. org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    7. org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
    7 frames
  3. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(InitialContext.java:392)
    1 frame
  4. org.grails.tomcat
    TomcatServer.start
    1. org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:135)
    1 frame
  5. grails.web.container
    EmbeddableServer$start.call
    1. grails.web.container.EmbeddableServer$start.call(Unknown Source)
    1 frame
  6. 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. RunApp$_run_closure1.doCall(RunApp.groovy:33)
    10 frames
  7. 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