Uploaded image for project: 'Crowd'
  1. Crowd
  2. CWD-4820

Own freemarker templates won't render in 2.10.1

    XMLWordPrintable

    Details

      Description

      Freemarker templates in my own plugin (https://marketplace.atlassian.com/plugins/com.zenofx.crowd.upm/server/overview) cause the following exception:

      java.lang.NoSuchMethodError: freemarker.ext.jsp.TaglibFactory.setObjectWrapper(Lfreemarker/template/ObjectWrapper;)V
      org.apache.struts2.views.freemarker.FreemarkerManager.buildScopesHashModel(FreemarkerManager.java:368)
      org.apache.struts2.views.freemarker.FreemarkerManager.buildTemplateModel(FreemarkerManager.java:539)
      org.apache.struts2.views.freemarker.FreemarkerResult.createModel(FreemarkerResult.java:301)
      org.apache.struts2.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:182)
      ...
      

      Probably a version mismatch between freemarker (2.3.21) and Struts2 (2.3.29) in the Crowd installation - IMHO freemarker is too old. The default object wrapper changed in freemarker 2.3.22. When updating freemarker to 2.3.24-atlassian-2 in WEB-INF/lib of the Crowd installation, everything works as expected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ppetrowski Patryk
              Reporter:
              tom87 zenofx.com
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: