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

Scheduler-entry blade sample incorrect bundle symbolic name in module-log4j.xml

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.0.X, 7.1.X, Master
    • Fix Version/s: None
    • Component/s: Dev Tools
    • Labels:

      Description

      Issue
      blade sample "scheduler-entry" does not work, as the bundle-symbolic name in module-log4j.xml is incorrect

      Steps to reproduce

      1. Prepare a clean 7.1 instance
      2. Add the following portal-ext.properties to enable gogo shell
        module.framework.properties.osgi.console=localhost:11311
        
      3. Start Liferay
      4. Create a sample project from blade samples
        $> blade samples -v 7.1 scheduler-entry
        
      5. Change the trigger from 15min to 1min
        $> cd scheduler-entry
        $> sed -i "" "s/getEventListenerClass(), 15/getEventListenerClass(), 1/g" src/main/java/com/liferay/blade/samples/schedulerentry/BladeSchedulerEntryMessageListener.java
        
      6. deploy sample to running Liferay
        $> blade deploy
        Installed bundle 752
        Started bundle 752
        
      7. Confirm plugin has started in Liferay logs
        019-01-18 01:33:36.298 INFO  [pipe-start 752][BundleStartStopLogger:39] STARTED com.liferay.blade.scheduler.entry_1.0.0 [752]
        
      8. Wait a couple minutes and confirm scheduler triggers job and message is recorded in logs

      Expected results
      Message is recorded in logs every minute

      Actual results
      No message is recorded whatsoever

      Reproduced in
      blade samples -v 7.1 scheduler-entry
      blade samples -v 7.0 scheduler-entry

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alfred.sampang Alfred Sampang
              Reporter:
              alfred.sampang Alfred Sampang
              Participants of an Issue:
              Recent user:
              Alfred Sampang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 16 weeks, 3 days ago

                  Packages

                  Version Package