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 | 4 months ago
  1. 0

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

    nabble.com | 4 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

    Context [/heatclinic] startup failed due to previous errors

    Stack Overflow | 2 years ago | sanil sathyan
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitManager' while setting bean property 'persistenceUnitManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blMergedDataSources' defined in resource loaded from byte array: Cannot resolve reference to bean 'webDS' while setting bean property 'sourceMap' with key [TypedStringValue: value [jdbc/web], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webDS': 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.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$0.call
    1. grails.web.container.EmbeddableServer$start$0.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. _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
  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