Results 1 to 3 of 3

Thread: Unable to read property file.

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Default Unable to read property file.

    Hi,
    I am working on one web application in which i want to retrieve values from property files which are present outside of the application i.e on system drive.
    but while doing this i am facing the problem.Interestingly if i put property files at class path location then application works properly.
    I am using resin server 3.0.23 and spring MVC architecture with spring 2.5.4 jars.i am also tried it on resin upgraded version of resin 4.0.9. there also i am getting the same problem.

    Is there any compatibility issue of resin server for above query or If there is any other way to solve this issue?

    please suggest.

    thanks.

  2. #2
    Join Date
    Sep 2010
    Posts
    1

    Default

    im having a similar problemm

  3. #3
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    709

    Default

    How do you retrieve the properties?

    With this

    Code:
      <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location">
          <value>file:my_full_path/my_file_name.properties</value>
        </property>
      </bean>
    it will definitely work, unless there are read restrictions on the file installed on disk (which by the way is resolved by a good ole chmod +r filename)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •