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

Atlassian JIRA | Nick Minutello | 1 decade ago
  1. 0

    We get the following error periodically (every 30sec or so - there must be some timer?) As far as we can tell Jira seems to be working fine. We seem to be able to do everything we want (except delete users, it seems - but I think that is something else...) -Nick Minutello # 2002-11-11 18:27:17,244 WARN [ofbiz.core.entity.ConnectionFactory] [ConnectionFactory.getConnection] Failed to find DataSource named java:comp/env/jdbc/JiraDS in JNDI server with name default. Trying normal database. javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:93) at org.ofbiz.core.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:58) at org.ofbiz.core.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:621) at org.ofbiz.core.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:75) at org.ofbiz.core.entity.GenericDAO.checkDb(GenericDAO.java:1324) at org.ofbiz.core.entity.GenericHelperDAO.checkDataSource(GenericHelperDAO.java:260) at org.ofbiz.core.entity.GenericDelegator.<init>(GenericDelegator.java:136) at org.ofbiz.core.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:81) at com.atlassian.jira.config.DefaultConfig.<init>(DefaultConfig.java:47) at com.atlassian.jira.config.ConfigFactory.getConfig(ConfigFactory.java:26) at com.atlassian.jira.service.ServiceRunner.runServices(ServiceRunner.java:35) at com.atlassian.jira.service.JiraTimerTask.run(JiraTimerTask.java:34) at java.util.TimerThread.mainLoop(Timer.java:432) at java.util.TimerThread.run(Timer.java:382) 2002-11-11 18:27:17,246 ERROR [ofbiz.core.entity.ConnectionFactory] ******* ERROR: No database connection found for helperName "defaultDS"

    Atlassian JIRA | 1 decade ago | Nick Minutello
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  2. 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
  3. 0

    FAIL - Application at context path /mycompany could not be started

    Stack Overflow | 2 years ago | alex_gabriel
    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
  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 | 4 years ago | Talha Ahmed Khan
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
  6. 0

    javax.naming.NameNotFoundException : Unable to connect to derby database

    Stack Overflow | 4 years ago | Suhail Gupta
    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:811)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:181)
    3. org.apache.naming.NamingContext.lookup(NamingContext.java:822)
    4. org.apache.naming.NamingContext.lookup(NamingContext.java:181)
    5. org.apache.naming.NamingContext.lookup(NamingContext.java:822)
    6. org.apache.naming.NamingContext.lookup(NamingContext.java:194)
    7. org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
    7 frames
  3. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(InitialContext.java:347)
    1 frame
  4. org.ofbiz.core
    GenericDelegator.getGenericDelegator
    1. org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:93)
    2. org.ofbiz.core.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:58)
    3. org.ofbiz.core.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:621)
    4. org.ofbiz.core.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:75)
    5. org.ofbiz.core.entity.GenericDAO.checkDb(GenericDAO.java:1324)
    6. org.ofbiz.core.entity.GenericHelperDAO.checkDataSource(GenericHelperDAO.java:260)
    7. org.ofbiz.core.entity.GenericDelegator.<init>(GenericDelegator.java:136)
    8. org.ofbiz.core.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:81)
    8 frames
  5. com.atlassian.jira
    JiraTimerTask.run
    1. com.atlassian.jira.config.DefaultConfig.<init>(DefaultConfig.java:47)
    2. com.atlassian.jira.config.ConfigFactory.getConfig(ConfigFactory.java:26)
    3. com.atlassian.jira.service.ServiceRunner.runServices(ServiceRunner.java:35)
    4. com.atlassian.jira.service.JiraTimerTask.run(JiraTimerTask.java:34)
    4 frames
  6. Java RT
    TimerThread.run
    1. java.util.TimerThread.mainLoop(Timer.java:432)
    2. java.util.TimerThread.run(Timer.java:382)
    2 frames