Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content