facebook

Could not resolve placeholder applicationContext.xml Spring

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264956 Reply

    schanamolu
    Member

    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

    #265002 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Since this is occuring outside of the MyEclipse runtime environment I have to assume this is a general question about Spring resolving system properties.

    I have never used system properties with Spring before, is ${} standard notation for it to resolve system variables like PATH and JAVA_HOME setup in your environement or is it talking about System.getProperty() Java VM system properties?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Could not resolve placeholder applicationContext.xml Spring

You must be logged in to post in the forum log in