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

Liferay Portal 7.1 fails to detect @Component in war file

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.1.0 CE GA1, 7.1.10 DXP FP1
    • Fix Version/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Set module.framework.web.generator.generated.wabs.store=true in your portal-ext.properties file.
      2. Deploy the JSF DS Applicant portlet to Liferay 7.1.
      3. Press the plus button to open the "Add" sidebar.
      4. Expand Widgets.
      5. Expand Sample.

      If the bug still exists, jsf-ds-applicant will not appear as a portlet that can be added to a page.

      If the bug is fixed, jsf-ds-applicant, will appear as a portlet. When added to the page, the following will appear in the browser:

      Notes

      Liferay Portal 7.1 does not seem to be detecting the @Component annotation on the ApplicantFacesPortlet class. So the generated WAB is missing both the OSGI-INF/com.liferay.faces.demos.portlet.ApplicantFacesPortlet.xml file (attached) and the following MANIFEST.MF content:

      Provide-Capability: osgi.service;objectClass:List<String>="javax.portl
       et.Portlet"
      Require-Capability: osgi.extender;filter:="(&(osgi.extender=jsp.taglib
       )(uri=http://java.sun.com/portlet_2_0))",osgi.extender;filter:="(&(os
       gi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0)))",osgi
       .service;filter:="(objectClass=javax.servlet.Servlet)";effective:=act
       ive,osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
      Service-Component: OSGI-INF/com.liferay.faces.demos.portlet.ApplicantF
       acesPortlet.xml
      

      The WAB is generated correctly in Liferay Portal 7.0 and can be added to a page and interacted with.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                kyle.stiemann Kyle Stiemann (Inactive)
                Participants of an Issue:
                Recent user:
                Kyle Stiemann (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 12 weeks, 2 days ago

                  Packages

                  Version Package