Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-4263

Configuring Felix Cache Storage location with config.properties not working

    Details

    • Story Points:
      1
    • Sprint:
      OpenIDM Sprint 50

      Description

      I am trying to redirect the Felix Cache to a custom location using the config.properties file like described in http://openidm.forgerock.org/doc/bootstrap/install-guide/index.html#redirect-openidm-writes.

      So I update the file with those value:

      # If this value is not absolute, then the felix.cache.rootdir controls
      # how the absolute location is calculated. (See buildNext property)
      org.osgi.framework.storage=${felix.cache.rootdir}/felix-cache
      
      # The following property is used to convert a relative bundle cache
      # location into an absolute one by specifying the root to prepend to
      # the relative cache path. The default for this property is the
      # current working directory.
      felix.cache.rootdir=/path/to/openidm
      

      But when I start OpenIDM I get an error:

      ./startup.sh
      Executing ./startup.sh...
      Using OPENIDM_HOME:   /Users/laurent/Installs/openidm
      Using PROJECT_HOME:   /Users/laurent/Installs/openidm
      Using OPENIDM_OPTS:   -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/Users/laurent/Installs/openidm/conf/logging.properties
      Exception in thread "main" java.lang.IllegalArgumentException: Illegal character in path at index 1: ${felix.cache.rootdir}/felix-cache
      	at java.net.URI.create(URI.java:859)
      	at java.net.URI.resolve(URI.java:1043)
      	at org.forgerock.commons.launcher.OSGiFrameworkService.getFileForPath(OSGiFrameworkService.java:706)
      	at org.forgerock.commons.launcher.OSGiFrameworkService.init(OSGiFrameworkService.java:358)
      	at org.forgerock.commons.launcher.OSGiFrameworkService.init(OSGiFrameworkService.java:282)
      	at org.forgerock.commons.launcher.Main.main(Main.java:37)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${felix.cache.rootdir}/felix-cache
      	at java.net.URI$Parser.fail(URI.java:2829)
      	at java.net.URI$Parser.checkChars(URI.java:3002)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3086)
      	at java.net.URI$Parser.parse(URI.java:3044)
      	at java.net.URI.<init>(URI.java:595)
      	at java.net.URI.create(URI.java:857)
      

      I know I discussed this matter with jason vincent already in the comments of a issue in Jira, but I am not able to find it again. Maybe I am missing something here....

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.vincent jason vincent
                Reporter:
                laurent.bristiel Laurent Bristiel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: