Hello,
I’m facing an issue with spring integration.
I’m trying to load properties from a “.properties” file using tag “context:property-placeholder” and when I try to access one of the properties it looks like properties are not loaded.
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘test.config.core’ in string value “${test.config.core}”
I’m using.
<context:property-placeholder location=“file:${catalina.base}/conf/configWorkflow.properties”/>
Something that is also strange:
When I’m removing the call to the properties “${test.config.core}” and put a typo in the name of the properties files it’ throwing an exception
Caused by: java.io.FileNotFoundException: /usr/share/tam/conf/configWorkflodw.properties which is expected
but it isn’t throwing this exception if the call to the property is present in the context file.
It looks like it’s trying to fill properties before loading the property-placeholder.
I’ve tryed to use loanapproval-bonus workflow to reproduce this issue and I can reproduce it.
I’m simply loading the placeholder
<context:property-placeholder location=“file:${catalina.base}/conf/configWorkflow.properties”/>
wich contain a property
test.config.core=core
then I load an empty spring file spring-core-config.xml
I’m using a Shared Process Engine.
Any idea?
Thank you,
Massimo Pacini