legacy-knowledge-base
公開されました Sep. 10, 2025

TemplateException:サポートされていないテンプレートマネージャ ftl

written-by

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 環境が安定せず、ページが正しく読み込まれず、ログインすらできない。
  • ログファイルには、これらのエラーが表示されている:
    2024-04-30 16:52:27.467 ERROR [com.liferay.portal.osgi.web.wab.extender.internal.WabFactory-BundleTrackerOpener][LayoutTemplateLocalServiceImpl:524] Unable to get layout template columns
    com.liferay.portal.kernel.template.TemplateException: Unsupported template manager ftl
    at com.liferay.portal.kernel.template.TemplateManagerUtil._getTemplateManagerChecked(TemplateManagerUtil.java:156)
    at com.liferay.portal.kernel.template.TemplateManagerUtil._getTemplate(TemplateManagerUtil.java:138)
    at com.liferay.portal.kernel.template.TemplateManagerUtil.getTemplate(TemplateManagerUtil.java:57)
    ...
    2024-04-30 16:52:28.927 ERROR [Portal Dependency Manager Component Executor--1][FragmentCollectionContributorTrackerImpl:300] Unable to validate fragment entry
    com.liferay.portal.kernel.template.TemplateException: Unsupported template manager ftl
    at com.liferay.portal.kernel.template.TemplateManagerUtil._getTemplateManagerChecked(TemplateManagerUtil.java:156)
    at com.liferay.portal.kernel.template.TemplateManagerUtil._getTemplate(TemplateManagerUtil.java:138)
    at com.liferay.portal.kernel.template.TemplateManagerUtil.getTemplate(TemplateManagerUtil.java:57)
    ...

環境

  • Liferay DXP 7.3

解像度

  • 設定を再確認してください:システム設定 > テンプレートエンジン > FreeMarkerエンジン
    • インスタンスにアクセスできない場合は、このクエリを使用できます:
      select * from configuration_ c where configurationid like '%FreeMarkerEngineConfiguration%'
    • 現在の設定を保存しておくと、後で必要になったときに便利です。
  • また、com.liferay.portal.template.freemarker.configuration.FreeMarkerEngineConfiguration.configの設定ファイルがLIFERAY_HOME/osgi/configs に既にあるか確認してください。
  • 添付ファイルをLIFERAY_HOME/osgi/configs に追加して、デフォルト設定に戻してみてください。 以前のFreeMarkerEngineConfigurationファイルがあれば削除する。 サーバーを再起動する必要があります。
    • 注意: 添付のFreeMarkerEngineConfigurationファイルは 7.3 SP1 のデフォルト設定です。 異なるバージョンを使用している場合は、そのバージョンのデフォルト設定を取得してください。
  • その後、システムは再び安定するはずだ。 いったん安定したら、再び自分のニーズに合わせてコンフィギュレーションを調整したくなるかもしれないが、再び不安定にならないように注意すること。
did-this-article-resolve-your-issue

legacy-knowledge-base