• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Failed to load ApplicationContext

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
I didn't say it. I'm just telling you what this tiny ad said.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic