Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer
Issue
- I'm setting a java system property and I get this message when we try to have the app dynamically find the properties file:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0': Cannot resolve reference to bean 'fsdwProperties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fsdwProperties': Invocation of init method failed; nested exception is java.io.FileNotFoundException: /opt/properties/fsdw_${spring.profiles.active}.properties (No such file or directory)
Environment
- Red Hat Enterprise Linux 6
- Tomcat 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
