org.springframework.jndi.JndiLookupFailureException: JndiObjectTargetSource failed to obtain new target object; nested exception is javax.naming.NameNotFoundException: Name [java:comp/env/jdbc/RCMatcherDS] is not bound in this Context. Unable to find [java:comp].

Stack Overflow | Sabir Khan | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JndiLookupFailureException when spring.batch.initializer.enabled=false

    Stack Overflow | 8 months ago | Sabir Khan
    org.springframework.jndi.JndiLookupFailureException: JndiObjectTargetSource failed to obtain new target object; nested exception is javax.naming.NameNotFoundException: Name [java:comp/env/jdbc/RCMatcherDS] is not bound in this Context. Unable to find [java:comp].
  2. 0

    Tomcat conection pooling for oracle DB using Jndi

    Stack Overflow | 4 years ago | vagga ravi
    javax.naming.NameNotFoundException: Name java: is not bound in this Context
  3. 0

    Spring fails to lookup jdbc configured Data Source

    Stack Overflow | 6 years ago | shiju
    javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Constant java:comp not bound in this context error tomcat6

    Stack Overflow | 4 years ago | Eric Banderhide
    javax.naming.NameNotFoundException: Name java:comp 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 [java:comp/env/jdbc/RCMatcherDS] is not bound in this Context. Unable to find [java:comp].

    at org.apache.naming.NamingContext.lookup()
  2. Web Container Naming Utilities
    NamingContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:817)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:174)
    2 frames
  3. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(Unknown Source)
    1 frame
  4. Spring Context
    JndiObjectTargetSource.getTarget
    1. org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:155)
    2. org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
    3. org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
    4. org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:179)
    5. org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
    6. org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:106)
    7. org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:135)
    7 frames
  5. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)
    1 frame
  6. com.sun.proxy
    $Proxy37.getConnection
    1. com.sun.proxy.$Proxy37.getConnection(Unknown Source)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  8. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    2 frames
  9. com.sun.proxy
    $Proxy37.getConnection
    1. com.sun.proxy.$Proxy37.getConnection(Unknown Source)
    1 frame
  10. Spring Framework
    JdbcTemplate.query
    1. org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
    2. org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
    3. org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:394)
    4. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:474)
    5. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:484)
    5 frames
  11. Spring Batch Infrastructure
    SynchronizedItemStreamReader.read
    1. org.springframework.batch.item.database.JdbcPagingItemReader.doReadPage(JdbcPagingItemReader.java:208)
    2. org.springframework.batch.item.database.AbstractPagingItemReader.doRead(AbstractPagingItemReader.java:108)
    3. org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.read(AbstractItemCountingItemStreamItemReader.java:88)
    4. org.springframework.batch.item.support.SynchronizedItemStreamReader.read(SynchronizedItemStreamReader.java:55)
    4 frames
  12. Spring Batch Core
    SimpleChunkProvider$1.doInIteration
    1. org.springframework.batch.core.step.item.SimpleChunkProvider.doRead(SimpleChunkProvider.java:91)
    2. org.springframework.batch.core.step.item.SimpleChunkProvider.read(SimpleChunkProvider.java:157)
    3. org.springframework.batch.core.step.item.SimpleChunkProvider$1.doInIteration(SimpleChunkProvider.java:116)
    3 frames
  13. Spring Batch Infrastructure
    RepeatTemplate.iterate
    1. org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)
    2. org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)
    3. org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)
    3 frames
  14. Spring Batch Core
    TaskletStep$ChunkTransactionCallback.doInTransaction
    1. org.springframework.batch.core.step.item.SimpleChunkProvider.provide(SimpleChunkProvider.java:110)
    2. org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:69)
    3. org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)
    4. org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)
    4 frames
  15. Spring Tx
    TransactionTemplate.execute
    1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
    1 frame
  16. Spring Batch Core
    StepContextRepeatCallback.doInIteration
    1. org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)
    2. org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)
    2 frames
  17. Spring Batch Infrastructure
    TaskExecutorRepeatTemplate$ExecutingRunnable.run
    1. org.springframework.batch.repeat.support.TaskExecutorRepeatTemplate$ExecutingRunnable.run(TaskExecutorRepeatTemplate.java:262)
    1 frame
  18. Spring Core
    SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run
    1. org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:268)
    1 frame
  19. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame