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

Plugin SDK has does not have compatible version of the Liferay Faces archetypes

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.0.X
    • Fix Version/s: None
    • Labels:
      None

      Description

      Description:

      Facing issue with Primefaces plugin created using SDK,as upon deployment it is throwing 

      java.lang.NoClassDefFoundError: com/liferay/portal/model/Portlet
      

      Steps to replicate:
      1) Download the plugin SDK and under portlets folder execute following command:
      "create.bat test1 "Test1" primefaces"
      2) Build,  Deploy the plugin and Drag and Drop the Portlet to the Page.
      3) Refresh the page ad it throws the "Portlet currently unavailable" error in UI and follwoing error in console:

      ERROR [http-nio-8080-exec-4][render_portlet_jsp:131] null
      java.lang.NoClassDefFoundError: com/liferay/portal/model/Portlet
              at com.liferay.faces.bridge.container.liferay.LiferayPortletRequest.<init>(LiferayPortletRequest.java:67)
              at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl.<init>(PortletContainerLiferayImpl.java:96)
              at com.liferay.faces.bridge.container.PortletContainerFactoryImpl.getPortletContainer(PortletContainerFactoryImpl.java:43)
              at com.liferay.faces.bridge.BridgePhaseBaseImpl.init(BridgePhaseBaseImpl.java:172)
              at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:119)
              at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
              at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:112)
              at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
              at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:359)
              at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
              at javax.portlet.GenericPortlet.render(GenericPortlet.java:262)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:57)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletExceptionAdapter.service(ServletExceptionAdapter.java:76)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50) 
      

      Same issue happens if created primefaces plugin through LDS.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                2 years, 7 weeks, 4 days ago

                Packages

                Version Package