org.springframework.beans.factory.BeanDefinitionStoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • given securityContext.xml file with the following (abbreviated) contents: <beans xmlns=... xsi:schemaLocation=... xmlns:xsi=...> <bean id="props" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property value="true" name="ignoreUnresolvablePlaceholders"/> <property value="true" name="ignoreResourceNotFound"/> <property name="properties"> <props> <prop key="webapp.port">8443</prop> <prop key="webapp.server">localhost</prop> </props> </property> <property name="locations"> <list> <value>classpath:all-dev.properties</value> <value>classpath:all-dev-pub.properties</value> <value>classpath:all-global.properties</value> </list> </property> </bean> ... <bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties"> <property value="https://${webapp.server}:${webapp.port}/core-services/j_spring_cas_security_check" name="service"/> <property value="false" name="sendRenew"/> </bean> as you can see I tell PropertyPlaceholderConfigurer to ignoreUnresolvablePlaceholders, and have defaults, and various locations (all of which valid, with "all-global.properties" containing overrides to the default values.) at Tomcat runtime i get the following.... ERROR main org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'serviceProperties' defined in ServletContext resource [/WEB-INF/securityContext.xml]: Could not resolve placeholder 'webapp.server' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272) why can't PropertyPlaceholderConfigurer resolve this variable? it's got a default and even if it didn't shouldn't it ignore it? from the Javadoc (and other google'd sources) this should work. i'm at a loss as to why it cannot find "webapp.server". thanks in advance for your assistance. NOTE: this is my first ever use of Jira. I normally would not categorize this as a bug (i assume it's User Error!), but am unsure as to what category to specify. please forgive my ignorance. dhm
    via by David Mobley,
  • given securityContext.xml file with the following (abbreviated) contents: <beans xmlns=... xsi:schemaLocation=... xmlns:xsi=...> <bean id="props" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property value="true" name="ignoreUnresolvablePlaceholders"/> <property value="true" name="ignoreResourceNotFound"/> <property name="properties"> <props> <prop key="webapp.port">8443</prop> <prop key="webapp.server">localhost</prop> </props> </property> <property name="locations"> <list> <value>classpath:all-dev.properties</value> <value>classpath:all-dev-pub.properties</value> <value>classpath:all-global.properties</value> </list> </property> </bean> ... <bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties"> <property value="https://${webapp.server}:${webapp.port}/core-services/j_spring_cas_security_check" name="service"/> <property value="false" name="sendRenew"/> </bean> as you can see I tell PropertyPlaceholderConfigurer to ignoreUnresolvablePlaceholders, and have defaults, and various locations (all of which valid, with "all-global.properties" containing overrides to the default values.) at Tomcat runtime i get the following.... ERROR main org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'serviceProperties' defined in ServletContext resource [/WEB-INF/securityContext.xml]: Could not resolve placeholder 'webapp.server' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272) why can't PropertyPlaceholderConfigurer resolve this variable? it's got a default and even if it didn't shouldn't it ignore it? from the Javadoc (and other google'd sources) this should work. i'm at a loss as to why it cannot find "webapp.server". thanks in advance for your assistance. NOTE: this is my first ever use of Jira. I normally would not categorize this as a bug (i assume it's User Error!), but am unsure as to what category to specify. please forgive my ignorance. dhm
    via by David Mobley,
  • [cas-user] CAS securityContext exception
    via by Zac Harvey,
  • GitHub comment 14#261785763
    via GitHub by pranavv
    ,
  • Tomcat server is running,getting 404 error
    via Stack Overflow by Kris27
    ,
    • org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'serviceProperties' defined in ServletContext resource [/WEB-INF/securityContext.xml]: Could not resolve placeholder 'webapp.server' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272)

    Users with the same issue

    odd
    16 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates