Hi I have the following entry in applicationContext.xml
<bean id=”propertyConfigurer” class=”org.springframework.beans.factory.config.PropertyPlaceholderConfigurer”>
<property name=”location”>
<value>file:${ACCESSPOINT_HOME}/accesspoint_ws/config/application.properties</value>
</property>
<property name=”systemPropertiesModeName”>
<value>SYSTEM_PROPERTIES_MODE_OVERRIDE</value>
</property>
</bean>
System Properties define the following enviornment variable ACCESSPOINT_HOME=C:\accesspoint_home
I got the following error during the tomcatserver startup
– Could not resolve placeholder ‘ACCESSPOINT_HOME’ in [file:${ACCESSPOINT_HOME}/accesspoint_ws/config/application.properties] as system property
– Loading properties file from URL [file:${ACCESSPOINT_HOME}/accesspoint_ws/config/application.properties]
Question 1; How do we get the System Enviornment variable initialised during applicationContext.xml ??
Please let me know.
Thanks,
Sreedhar