Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-16714

Quartz jobs can't to be scheduled on startup by portal(-ext).properties

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      com.liferay.portal.kernel.job.Scheduler Quartz related issue

      Description

      in Liferay Administration Guide 6.0.x Documentation, pp.288, - portal.properties
      #Input a list of comma delimited class names that implement com.liferay.-
      #portal.kernel.job.Scheduler. These classes allow jobs to be scheduled on startup.
      #These classes are not associated to any one portlet.
      scheduler.classes=

      The property is correctly present in PropsKeys/PropsValues pair source:
      Portal-service - package com.liferay.portal.kernel.util PropsKeys.java
      ...
      01382: public static final String SCHEDULER_CLASSES = "scheduler.classes";
      ...

      Portal-impl - package com.liferay.portal.util PropsValues.java
      ...
      00963: public static final String[] SCHEDULER_CLASSES = PropsUtil.getArray(PropsKeys.SCHEDULER_CLASSES);
      ...

      But is "not used" yet in 6.0.5/6.0.6, 'caouse this code was only in 5.2.3:

      Portal-impl - package com.liferay.portal.servlet MainServlet.java
      ...
      00316: if (PropsValues.SCHEDULER_ENABLED) {
      00317: for (String className : PropsValues.SCHEDULER_CLASSES)

      { 00318: Scheduler scheduler = (Scheduler)InstancePool.get( 00319: className); 00320: 00321: scheduler.schedule(); 00322: }

      ...

      PROPOSED SOLUTION: copy the 5.2.3 above code in same MainServlet class of 6.0.x

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 16 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.2 CE GA3
                  6.1.30 EE GA3
                  6.2.0 CE M3