Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6247

JavaFree Module templatescript cannot be found when magnolia.resources.dir is not Magnolia Home

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 5.4
    • None
    • None

      I set the

      magnolia.resources.dir=${magnolia.home}/light-modules

      And put the "Hello Magnolia" sample in there.
      I was able to create a page with that template from "Hello Magnolia"
      but when it tried to render it I get an exception.

      Caused by: java.io.FileNotFoundException: Template "/hello-magnolia/templates/pages/hello.ftl" not found. The quoted name was interpreted by this template loader: info.magnolia.freemarker.FreemarkerHelper$ConfigDelegatingTemplateLoader@7ff4ef56.
      	at freemarker.template.Configuration.getTemplate(Configuration.java:995)
      

      However everything works as expected when resource dir is just HOME. So apparently some problem in the path resolution of the ftl file.

        Acceptance criteria

              Unassigned Unassigned
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD