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

Hot deploy errors on Mobile Device Detection LPKGs

    Details

    • Fix Priority:
      3

      Description

      Steps to Reproduce:

      1. Build LPKGs for Mobile Device Detection (3 total)
        Liferay Mobile Device Detection Enterprise - Impl.lpkg
        Liferay Mobile Device Detection Lite - API.lpkg
        Liferay Mobile Device Detection Lite - Impl.lpkg
        
      2. Remove LPKGs from osgi/marketplace
      3. Manually add "restart-required=false" to all 3 LPKGs in liferay-marketplace.properties
      4. Start Liferay server
      5. Deploy LPKGs to the Liferay Home "deploy" directory

      Expected Result:
      User can hot deploy LPKGs for Mobile Device Detection

      Actual Result:
      Errors on deployment:

      2019-11-13 22:49:31.681 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing Liferay Mobile Device Detection Enterprise - Impl.lpkg
      2019-11-13 22:49:31.683 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing Liferay Mobile Device Detection Lite - API.lpkg
      2019-11-13 22:49:31.683 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing Liferay Mobile Device Detection Lite - Impl.lpkg
      2019-11-13 22:49:38.127 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.portal.mobile.device.detection.fiftyonedegrees.enterprise_4.0.0 [1131]]
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.mobile.device.detection.fiftyonedegrees.enterprise [1131]_  Unresolved requirement: Import-Package: com.liferay.portal.mobile.device.detection.fiftyonedegrees.data; version="[1.0.0,2.0.0)"_ [Sanitized]
      	at org.eclipse.osgi.container.Module.start(Module.java:444)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447)
      	at com.liferay.osgi.util.bundle.BundleStartLevelUtil._startBundle(BundleStartLevelUtil.java:70)
      	at com.liferay.osgi.util.bundle.BundleStartLevelUtil.setStartLevelAndStart(BundleStartLevelUtil.java:50)
      	at com.liferay.portal.lpkg.deployer.internal.LPKGBundleTrackerCustomizer.addingBundle(LPKGBundleTrackerCustomizer.java:320)
      	at com.liferay.portal.lpkg.deployer.internal.LPKGBundleTrackerCustomizer.addingBundle(LPKGBundleTrackerCustomizer.java:90)
      	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475)
      	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
      	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
      	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
      	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230)
      	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137)
      	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129)
      	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191)
      	at org.eclipse.osgi.container.ModuleContainer.install(ModuleContainer.java:299)
      	at org.eclipse.osgi.storage.Storage.install(Storage.java:658)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)
      	at com.liferay.portal.lpkg.deployer.internal.DefaultLPKGDeployer.deploy(DefaultLPKGDeployer.java:149)
      	at com.liferay.portal.lpkg.deployer.internal.LPKGArtifactInstaller.install(LPKGArtifactInstaller.java:96)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:949)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:883)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
      2019-11-13 22:49:38.143 INFO  [Start Level: Equinox Container: 3df52e85-69e9-4350-bc11-1d6eb136f641][BundleStartStopLogger:39] STARTED Liferay Mobile Device Detection Enterprise - Impl_1.0.0 [1130]
      2019-11-13 22:49:38.973 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.portal.mobile.device.detection.fiftyonedegrees.enterprise_4.0.0 [1132]]
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.mobile.device.detection.fiftyonedegrees.enterprise [1132]_  Unresolved requirement: Import-Package: com.liferay.portal.mobile.device.detection.fiftyonedegrees.data; version="[1.0.0,2.0.0)"_ [Sanitized]
      	at org.eclipse.osgi.container.Module.start(Module.java:444)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447)
      	at com.liferay.osgi.util.bundle.BundleStartLevelUtil._startBundle(BundleStartLevelUtil.java:70)
      	at com.liferay.osgi.util.bundle.BundleStartLevelUtil.setStartLevelAndStart(BundleStartLevelUtil.java:50)
      	at com.liferay.portal.lpkg.deployer.internal.LPKGBundleTrackerCustomizer.addingBundle(LPKGBundleTrackerCustomizer.java:320)
      	at com.liferay.portal.lpkg.deployer.internal.LPKGBundleTrackerCustomizer.addingBundle(LPKGBundleTrackerCustomizer.java:90)
      	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475)
      	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
      	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
      	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
      	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230)
      	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137)
      	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129)
      	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191)
      	at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:746)
      	at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:538)
      	at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:484)
      	at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:474)
      	at org.eclipse.osgi.container.Module.start(Module.java:427)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447)
      	at com.liferay.portal.lpkg.deployer.internal.LPKGArtifactInstaller.install(LPKGArtifactInstaller.java:107)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:949)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:883)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
      2019-11-13 22:49:39.046 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][BundleStartStopLogger:39] STARTED com.liferay.portal.mobile.device.detection.fiftyonedegrees.api_4.0.0 [1134]
      2019-11-13 22:49:39.049 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][BundleStartStopLogger:39] STARTED Liferay Mobile Device Detection Lite - API_1.0.0 [1133]
      2019-11-13 22:49:39.564 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][BundleStartStopLogger:39] STARTED com.liferay.portal.mobile.device.detection.fiftyonedegrees_5.0.0 [1136]
      2019-11-13 22:49:39.577 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][BundleStartStopLogger:39] STARTED Liferay Mobile Device Detection Lite - Impl_1.0.0 [1135]
      

      Unable to Reproduce using JARs instead of the LPKG packaging.

      2019-11-13 22:55:01.878 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.portal.mobile.device.detection.fiftyonedegrees-5.0.0.jar
      2019-11-13 22:55:01.882 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.portal.mobile.device.detection.fiftyonedegrees.api-4.0.0.jar
      2019-11-13 22:55:01.882 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.portal.mobile.device.detection.fiftyonedegrees.enterprise-4.0.0.jar
      2019-11-13 22:55:11.960 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.portal.mobile.device.detection.fiftyonedegrees.api_4.0.0 [1101]
      2019-11-13 22:55:11.960 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.portal.mobile.device.detection.fiftyonedegrees_5.0.0 [1100]
      2019-11-13 22:55:11.967 INFO  [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.portal.mobile.device.detection.fiftyonedegrees.enterprise_4.0.0 [1102]
      

      Unable to Reproduce by adding the LPKGs to osgi/marketplace prior to server startup.

      Workaround
      Restart the server after deployment

      Reproduced on:
      Master (DXP Profile): 62c5e8f6ecc4267b5e286d8f0021c9f481479aed

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  29 weeks, 6 days ago

                  Packages

                  Version Package