Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2525

Setting continue-rendering-after-exception parameter for enabling Freemarker support leads to freemarker.core.Configurable$UnknownSettingException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 2.24.14
    • 2.26.02
    • None
    • None

    Description

      I want to enable Freemarker support for my project and followed the instructions at [1]. Unfortunately at startup I run into an exception: freemarker.core.Configurable$UnknownSettingException: Unknown setting: continue-rendering-after-exception. I enabled this init-param in my web.xml with param-value true. This parameter only has a meaning for the HstFreemarkerServlet. But in its init() method, super.init() is called, which is the init of the FreemarkerServlet. This servlet also tries to interpret all <init-param>s from web.xml. And since it does not know the continue-rendering-after-exception, it throws an error.

      My hst version is 2.24.14, freemarker version is 2.3.18.

      [1]. http://www.onehippo.org/7_8/library/concepts/web-application/hst-2-freemarker-support-for-repository-and-classpath-located-freemarker-templates.html

      A suggested workaround was using the freemarker variable template_exception_handler. But setting this to ignore or any other option does not seem to have any effect.

      Attachments

        Issue Links

          Activity

            People

              aschrijvers Ard Schrijvers
              bleunis Bert Leunis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: