• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Failed to load ApplicationContext

 
Ranch Hand
Posts: 644
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

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic