Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4267

When devMode is enabled via CustomConfigProvider it is not possible to enable reloading automatically

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.3.16
    • Fix Version/s: 2.3.20
    • Component/s: XML Configuration
    • Labels:
      None

      Description

      When devMode is enbaled the framework used to enable some other debug options per default, like reloading of config and resources. In 2.3.16 that was changed to be able to have devMode without all of those other options. The reason for that are performance issues with freemarker debug options.

      A side effect of that is that automatic enablement of reloading does not work anymore when devMode is enabled via a CustomConfigProvider.

      To fix that default settings in default.properties can be outcommented. That way it does not take effect at runtime but is still present for developers to read the file.

      These properties are affected:

      • struts.i18n.reload
      • struts.configuration.xml.reload
      • struts.freemarker.templatesCache
      • struts.freemarker.templatesCache.updateDelay

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              cn42 Christoph Nenning
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: