org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar'

SpringSource Issue Tracker | Radhika Madala (c) | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Deploy a bundle which is having a spring bean whose property values has to set from the configadmin persisted data. I placed the sample.properties under DMS_HOME/config directory. Getting the below stack trace when trying to deploy the bundle [2009-06-02 12:41:18.293] server-dm-9 <SPDE0020E> Application context creation failure for bundle 'ConfigAdminServiceBundle'. org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:269) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) [2009-06-02 12:41:18.295] async-delivery-thread-1 <SPWE1000E> Failed to create web application '/config': the associated web bundle 'ConfigAdminServiceBundle' failed to publish its ApplicationContext. [2009-06-02 12:41:18.297] Connection(2)-10.5.1.140 <SPDE0011E> Deployment of 'ConfigAdminServiceBundle' version '1' failed. [2009-06-02 12:41:18.298] server-dm-9 <SPDE0020E> Application context creation failure for bundle 'ConfigAdminServiceBundle'. org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:269) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 8 years ago | Radhika Madala (c)
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar'
  2. 0

    Deploy a bundle which is having a spring bean whose property values has to set from the configadmin persisted data. I placed the sample.properties under DMS_HOME/config directory. Getting the below stack trace when trying to deploy the bundle [2009-06-02 12:41:18.293] server-dm-9 <SPDE0020E> Application context creation failure for bundle 'ConfigAdminServiceBundle'. org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:269) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) [2009-06-02 12:41:18.295] async-delivery-thread-1 <SPWE1000E> Failed to create web application '/config': the associated web bundle 'ConfigAdminServiceBundle' failed to publish its ApplicationContext. [2009-06-02 12:41:18.297] Connection(2)-10.5.1.140 <SPDE0011E> Deployment of 'ConfigAdminServiceBundle' version '1' failed. [2009-06-02 12:41:18.298] server-dm-9 <SPDE0020E> Application context creation failure for bundle 'ConfigAdminServiceBundle'. org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:269) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 8 years ago | Radhika Madala (c)
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar'
  3. 0

    Integration tests for configuration throws exceptions, but does not fail.

    Eclipse Bugzilla | 8 years ago | jkindler
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' defined in null: Could not resolve placeholder 'servicemix.base'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [OSGI-780] PropertyPlaceholderConfigurer support in Compendium is evaluated too early in context creation. - Spring JIRA

    spring.io | 2 years ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'fakeCounterFortress' defined in URL [bundleentry://60.fwk809606405/META-INF/spring/fortress-context.xml]: Could not resolve placeholder 'logicalId'
  6. 0

    Spring Circular placeholder reference while running an executable jar

    Stack Overflow | 5 years ago | Shamik
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'postProcessProperties' defined in class path resource [applicationContext.xml]: Circular placeholder reference 'processor.core.poolsize' in property definitions
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. org.springframework.beans.factory.BeanDefinitionStoreException

    Invalid bean definition with name 'configBean' defined in URL [bundleentry://85.fwk2036384282/META-INF/spring/config-context.xml]: Could not resolve placeholder 'bar'

    at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties()
  2. Spring Beans
    PropertyResourceConfigurer.postProcessBeanFactory
    1. org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:269)
    2. org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
    2 frames
  3. Spring OSGi Core
    AbstractDelegatedExecutionApplicationContext.startRefresh
    1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)
    2. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450)
    3. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)
    4. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281)
    5. org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    6. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
    6 frames
  4. org.springframework.osgi
    DependencyWaiterApplicationContextExecutor.refresh
    1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
    2. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
    2 frames
  5. Spring OSGi Core
    AbstractDelegatedExecutionApplicationContext.refresh
    1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
    1 frame
  6. org.springframework.osgi
    ContextLoaderListener$2.run
    1. org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
    1 frame
  7. com.springsource.kernel
    ContextPropagatingTaskExecutor$2.run
    1. com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82)
    1 frame
  8. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    3. java.lang.Thread.run(Thread.java:637)
    3 frames