Hi,
I have a
JUnit test, in which I'm trying to load the applicationContext. But it gives me the following exception :
org.springframework.beans.factory.BeanCreationException: Error creating bean with name defined in class path resource'com.nationwide.corporate.common.util.ContextualPropertyConfigurer' defined in class path resource [configuration/integrationApplicationContext.xml]: Can't resolve reference to bean 'environment' while setting property 'environment'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environment': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: System property 'environment' not set and default not specified.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environment': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: System property 'environment' not set and default not specified.
I'm not sure how to proceed...Any help is appreciated !!
Thanks,
vinitha simon