-
Type:
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: Master
-
Fix Version/s: None
-
Component/s: Application Security > OAuth2, Core Infrastructure
-
Labels:None
-
Fix Priority:3
Steps to Reproduce:
- Build LPKGs for Plugin for OAuth 2.0 (3 total)
Liferay Plugin for OAuth 2.0 - API.lpkg Liferay Plugin for OAuth 2.0 - Impl.lpkg Liferay Plugin for OAuth 2.0 - SPI.lpkg
- Remove LPKGs from osgi/marketplace
- Manually add "restart-required=false" to all 3 LPKGs in liferay-marketplace.properties
- Start Liferay server
- Deploy LPKGs to the Liferay Home "deploy" directory
Expected Result:
User can hot deploy LPKGs for Plugin for OAuth 2.0
Actual Result:
Errors on deployment:
2019-11-13 23:03:27.567 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing Liferay Plugin for OAuth 2.0 - API.lpkg 2019-11-13 23:03:27.587 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing Liferay Plugin for OAuth 2.0 - Impl.lpkg 2019-11-13 23:03:27.588 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing Liferay Plugin for OAuth 2.0 - SPI.lpkg 2019-11-13 23:03:35.342 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.scope.api_3.0.0 [1112], com.liferay.oauth2.provider.api_3.0.0 [1111], com.liferay.oauth2.provider.scope.liferay.api_3.0.0 [1113]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.api [1111]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.liferay; version="[1.2.0,2.0.0)"_ -> Export-Package: com.liferay.oauth2.provider.scope.liferay; bundle-symbolic-name="com.liferay.oauth2.provider.scope.liferay.api"; bundle-version="3.0.0"; version="1.2.0"; uses:="com.liferay.oauth2.provider.scope.spi.application.descriptor,com.liferay.oauth2.provider.scope.spi.scope.descriptor,org.osgi.framework"_ com.liferay.oauth2.provider.scope.liferay.api [1113]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.spi.application.descriptor; 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 23:03:35.363 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.api_3.0.0 [1114], com.liferay.oauth2.provider.scope.liferay.api_3.0.0 [1116], com.liferay.oauth2.provider.scope.api_3.0.0 [1115]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.api [1114]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.liferay; version="[1.2.0,2.0.0)"_ -> Export-Package: com.liferay.oauth2.provider.scope.liferay; bundle-symbolic-name="com.liferay.oauth2.provider.scope.liferay.api"; bundle-version="3.0.0"; version="1.2.0"; uses:="com.liferay.oauth2.provider.scope.spi.application.descriptor,com.liferay.oauth2.provider.scope.spi.scope.descriptor,org.osgi.framework"_ com.liferay.oauth2.provider.scope.liferay.api [1116]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.spi.application.descriptor; 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 23:03:35.377 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.scope.liferay.api_3.0.0 [1119], com.liferay.oauth2.provider.scope.api_3.0.0 [1118], com.liferay.oauth2.provider.api_3.0.0 [1117]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.api [1117]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.liferay; version="[1.2.0,2.0.0)"_ -> Export-Package: com.liferay.oauth2.provider.scope.liferay; bundle-symbolic-name="com.liferay.oauth2.provider.scope.liferay.api"; bundle-version="3.0.0"; version="1.2.0"; uses:="com.liferay.oauth2.provider.scope.spi.application.descriptor,com.liferay.oauth2.provider.scope.spi.scope.descriptor,org.osgi.framework"_ com.liferay.oauth2.provider.scope.liferay.api [1119]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.spi.application.descriptor; 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.Module.publishEvent(Module.java:476) at org.eclipse.osgi.container.Module.doStart(Module.java:578) at org.eclipse.osgi.container.Module.start(Module.java:449) 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 23:03:35.382 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][BundleStartStopLogger:39] STARTED Liferay Plugin for OAuth 2.0 - API_1.0.0 [1110] 2019-11-13 23:03:35.393 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.api_3.0.0 [1120], com.liferay.oauth2.provider.scope.api_3.0.0 [1121], com.liferay.oauth2.provider.scope.liferay.api_3.0.0 [1122]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.api [1120]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.liferay; version="[1.2.0,2.0.0)"_ -> Export-Package: com.liferay.oauth2.provider.scope.liferay; bundle-symbolic-name="com.liferay.oauth2.provider.scope.liferay.api"; bundle-version="3.0.0"; version="1.2.0"; uses:="com.liferay.oauth2.provider.scope.spi.application.descriptor,com.liferay.oauth2.provider.scope.spi.scope.descriptor,org.osgi.framework"_ com.liferay.oauth2.provider.scope.liferay.api [1122]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.scope.spi.application.descriptor; 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.Module.publishEvent(Module.java:476) at org.eclipse.osgi.container.Module.start(Module.java:467) 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 23:03:35.452 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.rest_3.0.0 [1125], com.liferay.oauth2.provider.jsonws_3.0.0 [1124], com.liferay.oauth2.provider.service_3.0.0 [1127], com.liferay.oauth2.provider.scope.impl_3.0.0 [1126], com.liferay.oauth2.provider.web_3.0.0 [1129], com.liferay.oauth2.provider.shortcut_3.0.0 [1128]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.jsonws [1124]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.model; version="[2.1.0,3.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 23:03:35.464 INFO [Start Level: Equinox Container: bf84650f-439e-41d5-ad05-aec44b57816f][BundleStartStopLogger:39] STARTED Liferay Plugin for OAuth 2.0 - Impl_1.0.0 [1123] 2019-11-13 23:03:35.520 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.jsonws_3.0.0 [1130], com.liferay.oauth2.provider.service_3.0.0 [1133], com.liferay.oauth2.provider.web_3.0.0 [1135], com.liferay.oauth2.provider.rest_3.0.0 [1131], com.liferay.oauth2.provider.scope.impl_3.0.0 [1132], com.liferay.oauth2.provider.shortcut_3.0.0 [1134]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.jsonws [1130]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.model; version="[2.1.0,3.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 23:03:35.537 ERROR [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.rest.spi_3.0.0 [1137], com.liferay.oauth2.provider.scope.spi_3.0.0 [1138]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.rest.spi [1137]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.model; version="[2.1.0,3.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 23:03:35.545 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/marketplace][BundleStartStopLogger:39] STARTED Liferay Plugin for OAuth 2.0 - SPI_1.0.0 [1136] 2019-11-13 23:03:35.552 ERROR [Start Level: Equinox Container: bf84650f-439e-41d5-ad05-aec44b57816f][LPKGBundleTrackerCustomizer:336] Rollback bundle installation for [com.liferay.oauth2.provider.rest.spi_3.0.0 [1139], com.liferay.oauth2.provider.scope.spi_3.0.0 [1140]] org.osgi.framework.BundleException: Could not resolve module: com.liferay.oauth2.provider.rest.spi [1139]_ Unresolved requirement: Import-Package: com.liferay.oauth2.provider.model; version="[2.1.0,3.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.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1577) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Unable to Reproduce using JARs instead of the LPKG packaging.
2019-11-13 23:08:28.681 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.api-3.0.0.jar 2019-11-13 23:08:28.683 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.jsonws-3.0.0.jar 2019-11-13 23:08:28.683 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.rest-3.0.0.jar 2019-11-13 23:08:28.684 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.rest.spi-3.0.0.jar 2019-11-13 23:08:28.684 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.scope.api-3.0.0.jar 2019-11-13 23:08:28.684 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.scope.impl-3.0.0.jar 2019-11-13 23:08:28.685 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.scope.liferay.api-3.0.0.jar 2019-11-13 23:08:28.685 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.scope.spi-3.0.0.jar 2019-11-13 23:08:28.685 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.service-3.0.0.jar 2019-11-13 23:08:28.686 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.shortcut-3.0.0.jar 2019-11-13 23:08:28.686 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:259] Processing com.liferay.oauth2.provider.web-3.0.0.jar 2019-11-13 23:08:36.495 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.scope.spi_3.0.0 [1107] 2019-11-13 23:08:36.495 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.scope.liferay.api_3.0.0 [1106] 2019-11-13 23:08:36.496 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.rest.spi_3.0.0 [1103] 2019-11-13 23:08:36.496 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.scope.api_3.0.0 [1104] 2019-11-13 23:08:36.496 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.rest_3.0.0 [1102] 2019-11-13 23:08:36.588 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.jsonws_3.0.0 [1101] 2019-11-13 23:08:36.622 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.api_3.0.0 [1100] 2019-11-13 23:08:36.851 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.service_3.0.0 [1108] 2019-11-13 23:08:36.892 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.shortcut_3.0.0 [1109] 2019-11-13 23:08:36.893 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.scope.impl_3.0.0 [1105] 2019-11-13 23:08:38.931 INFO [fileinstall-/Users/vicnate5/Liferay/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.oauth2.provider.web_3.0.0 [1110]
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
- duplicates
-
LPS-105991 LPKG hot deployment may run into unresolved dependencies due to incorrect module installation order
- Closed
- is related to
-
LPS-104785 As a portal admin, I would like to hot deploy new apps without restarting the portal
-
- Open
-