This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Failed to load ApplicationContext  RSS feed

 
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to migrate my application module from JBOSS to Spring boot.
I am done with most of the configuration changes.
But the build fails due to test failures.

The error I get is:

java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'rrmUpdateTradesManagerPilot' defined in class path resource [com/theheat/tv/tc/spring/rrm-import-config-multi.xml]: Could not resolve placeholder 'tv.tc.clr.import.pollinginterval' in string value "${tv.tc.clr.import.pollinginterval}";

I have application properties file defined under the environments folder which has defined the value for "tv.tc.clr.import.pollinginterval"
But seems like spring boot is unable to read this file and get the values and replace in above .xml file.

Below is my basic test class which defines the location of the property file



Can someone please let me know how to load the properties file and get rid of this error?

thanks

Trupti

 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!