Legacy Knowledge Base
Published Sep. 10, 2025

Configuring the "Module Definition Timeout"

Written By

Peter Nyiro

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • We needed to programmatically configure the "Module Definition Timeout (seconds)" setting found under System Settings > Infrastructure > JavaScript Loader in the Liferay UI. Specifically, we were looking for a way to set this value using a system property or configuration file, such as portal-ext.properties, instead of managing it through the UI.

Environment

  • Liferay DXP 2024.Q1

  • Configuration management via portal-ext.properties or OSGi configuration files

Resolution

  • This setting can be configured programmatically. The following two methods are available:

    1. portal-ext.properties
    Add the following line to the portal-ext.properties file (replace 170 with the desired timeout value):

    configuration.override.com.liferay.frontend.js.loader.modules.extender.internal.configuration.Details_waitTimeout=I"170"

    2. OSGi Configuration File
    Create a file named:

    com.liferay.frontend.js.loader.modules.extender.internal.configuration.Details.config

    Place it under the osgi/configs directory with the following content:

    applyVersioning=B"true" explainResolutions=B"false" exposeGlobal=B"false" logLevel="warn" waitTimeout=I"170"
  • These options allow the "Module Definition Timeout" to be managed outside the Liferay UI, enabling automated or scripted configuration as needed.
Did this article resolve your issue ?

Legacy Knowledge Base