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

fragment-impl depends on oauth2-provider-api

    Details

      Description

      A core module should not depend on an independent app.

      Steps to reproduce:

      1. Remove the OAuth2 jars from portal (or lpkgs from a packaged build)
      2. Start up

      Expected result:
      Portal starts up without errors

      Actual result:
      Startup errors

          [junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.fragment.impl [585]
          [junit]   Unresolved requirement: Import-Package: com.liferay.oauth2.provider.constants; version="[1.0.0,2.0.0)"
          [junit] 
          [junit] 	at org.eclipse.osgi.container.Module.start(Module.java:444)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
          [junit] 17:31:06,923 ERROR [Framework Event Dispatcher: Equinox Container: baabf65a-e7d0-45ac-92cb-9b272deb3e80][Framework:108] Exiting the JVM 
          [junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.fragment.impl [585]
          [junit]   Unresolved requirement: Import-Package: com.liferay.oauth2.provider.constants; version="[1.0.0,2.0.0)"
          [junit] 
          [junit] 	at org.eclipse.osgi.container.Module.start(Module.java:444)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
          [junit] 	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

      tested on:
      7.2.x Git hash c04439a5bb34395743e8fb7f31ee5f1b8a44db5a snapshot bundle
      fails in master & 7.2.x upstream acceptance

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.chong Joshua Chong
              Reporter:
              jason.pince Jason Pince
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 46 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.X
                  7.2.X
                  7.2.1 CE GA2
                  7.3.10 DXP GA1
                  Master